dhl / erb2haml

Simple script to bulk covert ERB files in a Rails app to Haml
MIT License
193 stars 20 forks source link

Rails doesn't recognize the rake task. #1

Closed josemotanet closed 13 years ago

josemotanet commented 13 years ago

Hi David, I couldn't use the rake task you've built. The output:

$ rake haml:convert_erbs
(in /home/jose/rails/survay)
rake aborted!
Don't know how to build task 'haml:convert_erbs' 

What should I do to make Rails recognize the task? Thanks.

dhl commented 13 years ago

Hi José, I have just packaged the script in a gem. So add the line:

gem 'erb2haml'

to your Gemfile, and don't forget to run bundle install. Be sure to remove old script from your app.

Let me know if you run into other problems.

josemotanet commented 13 years ago

Worked like a charm. Thanks, David!