Rails 2 uses config.gem, not gem.

This commit is contained in:
Nathan Weizenbaum 2010-08-16 10:25:20 -07:00
parent 35c2d05974
commit c38ba9ff1c
2 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ For more information on these commands, check out
sass --help
To install Haml and Sass in Rails 2,
just add `gem "haml"` to `config/environment.rb`.
just add `config.gem "haml"` to `config/environment.rb`.
In Rails 3, add `gem "haml"` to your Gemfile instead.
and both Haml and Sass will be installed.
Views with the `.html.haml` extension will automatically use Haml.

View File

@ -207,7 +207,7 @@ END
"haml --rails will no longer work in the next version of #{@name}.", "")
elsif File.exists?(env) && File.open(env) {|env| env.grep(/config\.gem/)}
puts("haml --rails isn't needed for Rails 2.1 or greater.",
"Add 'gem \"haml\"' to config/environment.rb instead.", "",
"Add 'config.gem \"haml\"' to config/environment.rb instead.", "",
"haml --rails will no longer work in the next version of #{@name}.", "")
end