Don't know if I am doing something wrong, but here's what I did:
Created new rails app (Rails 3.0.7)
gem install mechanize
Added to Gemfile: gem 'mechanize'
Here is the complete error:
> rails c /Users/george/rails/mechanize/config/application.rb:9:in '<top (required)>': Mechanize is not a module (TypeError) from /Users/george/.rbenv/versions/1.9.2-p290/gemsets/mechanize/gems/railties-3.0.7/lib/rails/commands.rb:21:in 'require' from /Users/george/.rbenv/versions/1.9.2-p290/gemsets/mechanize/gems/railties-3.0.7/lib/rails/commands.rb:21:in '<top (required)>' from script/rails:6:in 'require' from script/rails:6:in '<main>'
Don't know if I am doing something wrong, but here's what I did:
Created new rails app (Rails 3.0.7) gem install mechanize Added to Gemfile: gem 'mechanize'
Here is the complete error:
> rails c /Users/george/rails/mechanize/config/application.rb:9:in '<top (required)>': Mechanize is not a module (TypeError) from /Users/george/.rbenv/versions/1.9.2-p290/gemsets/mechanize/gems/railties-3.0.7/lib/rails/commands.rb:21:in 'require' from /Users/george/.rbenv/versions/1.9.2-p290/gemsets/mechanize/gems/railties-3.0.7/lib/rails/commands.rb:21:in '<top (required)>' from script/rails:6:in 'require' from script/rails:6:in '<main>'