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

Error in starting the rails server

I just installed the gem file 'devise' and now I get an error whenever I try to run the command rails generate devise user or rails server

Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Users\rohit>cd..

C:\Users>cd..

C:>cd treebook

C:\treebook>rails generate devise user C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-3.2.13/lib/rails/r ailtie/configuration.rb:85:in method_missing': undefined methodassests' for # <Rails::Application::Configuration:0x40ef6a8> (NoMethodError) from C:/treebook/config/application.rb:61:in <class:Application>' from C:/treebook/config/application.rb:13:in<module:Treebook>' from C:/treebook/config/application.rb:12:in <top (required)>' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-3.2.1 3/lib/rails/commands.rb:24:inrequire' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-3.2.1 3/lib/rails/commands.rb:24:in <top (required)>' from script/rails:6:inrequire' from script/rails:6:in `<main>'

C:\treebook>rails server C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-3.2.13/lib/rails/r ailtie/configuration.rb:85:in method_missing': undefined methodassests' for # <Rails::Application::Configuration:0x3f8a438> (NoMethodError) from C:/treebook/config/application.rb:61:in <class:Application>' from C:/treebook/config/application.rb:13:in<module:Treebook>' from C:/treebook/config/application.rb:12:in <top (required)>' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-3.2.1 3/lib/rails/commands.rb:53:inrequire' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-3.2.1 3/lib/rails/commands.rb:53:in block in <top (required)>' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-3.2.1 3/lib/rails/commands.rb:50:intap' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-3.2.1 3/lib/rails/commands.rb:50:in <top (required)>' from script/rails:6:inrequire' from script/rails:6:in `<main>'

1 Answer

Looks like you may have misspelled "assets" as "assests" somewhere. If you're using Sublime Text, try hitting command+shift+f to search all of your projects files for "assests" so you can change it to "assets".