haml / haml-rails

let your Gemfile do the talking
MIT License
1.04k stars 169 forks source link

Added Rails generator command: rails g haml:application_layout convert #73

Closed serv closed 9 years ago

serv commented 9 years ago

PR for #47

Usage Once you install haml-rails gem, you can run the following command to convert application.html.erb to application.html.haml.

$ rails generate haml:application_layout convert or $ rails g haml:application_layout convert

serv commented 9 years ago

I tested locally with a sample Rails app manually. I wasn't sure how to go about writing automated test for it. If you have some suggestions for automated tests, I'd be happy to add that in as well.

indirect commented 9 years ago

Cool, thanks!

serv commented 9 years ago

Can I write about using the command in the readme file? I can make a PR for that too.

indirect commented 9 years ago

Please do. Thanks!

On Dec 2, 2014, at 10:23 PM, Jason Kim notifications@github.com wrote:

Can I write about using the command in the readme file? I can make a PR for that too.

— Reply to this email directly or view it on GitHub https://github.com/indirect/haml-rails/pull/73#issuecomment-65361265.