From c38ba9ff1c1758e2b33fb35220a7ae2cf3cfcc66 Mon Sep 17 00:00:00 2001 From: Nathan Weizenbaum Date: Mon, 16 Aug 2010 10:25:20 -0700 Subject: [PATCH] Rails 2 uses config.gem, not gem. --- README.md | 2 +- lib/haml/exec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 81a5bff8..5f5d41f4 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/lib/haml/exec.rb b/lib/haml/exec.rb index 999d8720..c409bc87 100644 --- a/lib/haml/exec.rb +++ b/lib/haml/exec.rb @@ -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