Best way to load HAML in a Rails 3 application?

18 views
Skip to first unread message

slai...@gmail.com

unread,
Feb 9, 2010, 4:03:24 PM2/9/10
to Haml
Hi!

What is the best way to load HAML in a Rails 3 application?
In Rails 2 applications, I used to just add 'config.gem "haml"' in my
environment.rb file and even did not have to use the plugin.

Now, just adding gem "haml" in the Gemfile does not seem to activate
it, I have to add "require 'haml/template'" in my application.rb file.
Is it the best way?

Nicolas.

Psynix

unread,
Feb 9, 2010, 4:48:09 PM2/9/10
to Haml
Make sure you have the latest HAML release and then type "haml --
rails /path/to/rails3/application" and you should be up and HAML'ing.

- JohnM

Reply all
Reply to author
Forward
0 new messages