Rails 2 uses config.gem, not gem.
This commit is contained in:
parent
35c2d05974
commit
c38ba9ff1c
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue