mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
Rails 2 uses config.gem, not gem.
This commit is contained in:
parent
35c2d05974
commit
c38ba9ff1c
2 changed files with 2 additions and 2 deletions
|
@ -30,7 +30,7 @@ For more information on these commands, check out
|
||||||
sass --help
|
sass --help
|
||||||
|
|
||||||
To install Haml and Sass in Rails 2,
|
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.
|
In Rails 3, add `gem "haml"` to your Gemfile instead.
|
||||||
and both Haml and Sass will be installed.
|
and both Haml and Sass will be installed.
|
||||||
Views with the `.html.haml` extension will automatically use Haml.
|
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}.", "")
|
"haml --rails will no longer work in the next version of #{@name}.", "")
|
||||||
elsif File.exists?(env) && File.open(env) {|env| env.grep(/config\.gem/)}
|
elsif File.exists?(env) && File.open(env) {|env| env.grep(/config\.gem/)}
|
||||||
puts("haml --rails isn't needed for Rails 2.1 or greater.",
|
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}.", "")
|
"haml --rails will no longer work in the next version of #{@name}.", "")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue