Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby

Can't install devise

Hi!

Every time I try to install devise I get this error message: Install does not respond to 'devise' method. This usually means you haven't loaded your ORM file or it's being loaded too late. To fix it, be sure to require 'devise/orm/YOUR_ORM' inside 'config/initializers/devise.rb' or before your application definition in 'config/application.rb' (RuntimeError)

I have no clue how to solve this. Help?

Ps. People who have followed those instructions says it doesn't work. Personally I haven't tried it because I don't know how.

4 Answers

did you put the gem 'devise' at the gemfile then bundle it? I encounter that problem.

Yes I wrote devise exactly like he did in the video, then bundle and then I tried to install. Didn't work.

And now I cant ever run the application so it shows up in the web browser because I get the same message after starting the server. CMD-"rails server"

Ok I have no clue what I've done now...Maybe its better for me to just give up the project?

C:\Users\Awrath\treebook>rails server => Booting WEBrick => Rails 3.2.1 application starting in development on http://0.0.0.0:3000 => Call with -d to detach => Ctrl-C to shutdown server Exiting C:/Users/Awrath/treebook/config/routes.rb:2:in block in <top (required)>': unde fined methoddevise_for' for #<ActionDispatch::Routing::Mapper:0x3a90f68> (NoMe thodError) from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/actionpack-3.2 .1/lib/action_dispatch/routing/route_set.rb:272:in instance_exec' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/actionpack-3.2 .1/lib/action_dispatch/routing/route_set.rb:272:ineval_block' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/actionpack-3.2 .1/lib/action_dispatch/routing/route_set.rb:249:in draw' from C:/Users/Awrath/treebook/config/routes.rb:1:in<top (required)>' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport- 3.2.1/lib/active_support/dependencies.rb:245:in load' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport- 3.2.1/lib/active_support/dependencies.rb:245:inblock in load' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport- 3.2.1/lib/active_support/dependencies.rb:236:in load_dependency' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport- 3.2.1/lib/active_support/dependencies.rb:245:inload' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-3.2.1 /lib/rails/application/routes_reloader.rb:40:in block in load_paths' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-3.2.1 /lib/rails/application/routes_reloader.rb:40:ineach' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-3.2.1 /lib/rails/application/routes_reloader.rb:40:in load_paths' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-3.2.1 /lib/rails/application/routes_reloader.rb:16:inreload!' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-3.2.1 /lib/rails/application/routes_reloader.rb:26:in block in updater' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport- 3.2.1/lib/active_support/file_update_checker.rb:78:incall' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport- 3.2.1/lib/active_support/file_update_checker.rb:78:in execute' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-3.2.1 /lib/rails/application/routes_reloader.rb:27:inupdater' from C:2:in rescue in execute_if_updated' from C:inexecute_if_updated' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-3.2.1 /lib/rails/application/finisher.rb:66:in block in <module:Finisher>' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-3.2.1 /lib/rails/initializable.rb:30:ininstance_exec' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-3.2.1 /lib/rails/initializable.rb:30:in run' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-3.2.1 /lib/rails/initializable.rb:55:inblock in run_initializers' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-3.2.1 /lib/rails/initializable.rb:54:in each' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-3.2.1 /lib/rails/initializable.rb:54:inrun_initializers' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-3.2.1 /lib/rails/application.rb:136:in initialize!' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-3.2.1 /lib/rails/railtie/configurable.rb:30:inmethod_missing' from C:/Users/Awrath/treebook/config/environment.rb:5:in <top (required )>' from C:/Users/Awrath/treebook/config.ru:4:inrequire' from C:/Users/Awrath/treebook/config.ru:4:in block in <main>' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib /rack/builder.rb:51:ininstance_eval' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib /rack/builder.rb:51:in initialize' from C:/Users/Awrath/treebook/config.ru:1:innew' from C:/Users/Awrath/treebook/config.ru:1:in <main>' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib /rack/builder.rb:40:ineval' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib /rack/builder.rb:40:in parse_file' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib /rack/server.rb:200:inapp' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-3.2.1 /lib/rails/commands/server.rb:46:in app' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib /rack/server.rb:301:inwrapped_app' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib /rack/server.rb:252:in start' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-3.2.1 /lib/rails/commands/server.rb:70:instart' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-3.2.1 /lib/rails/commands.rb:55:in block in <top (required)>' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-3.2.1 /lib/rails/commands.rb:50:intap' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-3.2.1 /lib/rails/commands.rb:50:in <top (required)>' from script/rails:6:inrequire' from script/rails:6:in `<main>'

Does anyone have any answer to this? I've encountered the same problem.