I've been stuck on this problem since yesterday now, I've scoured the internet and it seems a lot of people have had this same error after running 'rails generate devise User'
I'm running what I believe to be the latest version of Devise (3.0.0.rc) and when I try to run 'rails server', I get the below error message. (I followed the insructions given by devise upon install)
I can't destroy the model, I can't migrate my db and I have to delete the whole project and start again every time.
Please help!
C:\Sites\blogbar>rails server
=> Booting WEBrick
=> Rails 4.0.0 application starting in development on http://0.0.0.0:3000
=> Run `rails server -h` for more startup options
=> Ctrl-C to shutdown server
Exiting
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-4.0.0/lib/act
ive_support/dependencies.rb:228:in `require': cannot load such file -- 1.9/bcryp
t_ext (LoadError)
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-
4.0.0/lib/active_support/dependencies.rb:228:in `block in require'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-
4.0.0/lib/active_support/dependencies.rb:211:in `block in load_dependency'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-
4.0.0/lib/active_support/dependencies.rb:615:in `new_constants_in'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-
4.0.0/lib/active_support/dependencies.rb:211:in `load_dependency'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-
4.0.0/lib/active_support/dependencies.rb:228:in `require'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bcrypt-ruby-3.
1.0-x86-mingw32/lib/bcrypt_ext.rb:2:in `<top (required)>'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-
4.0.0/lib/active_support/dependencies.rb:228:in `require'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-
4.0.0/lib/active_support/dependencies.rb:228:in `block in require'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-
4.0.0/lib/active_support/dependencies.rb:211:in `block in load_dependency'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-
4.0.0/lib/active_support/dependencies.rb:615:in `new_constants_in'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-
4.0.0/lib/active_support/dependencies.rb:211:in `load_dependency'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-
4.0.0/lib/active_support/dependencies.rb:228:in `require'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bcrypt-ruby-3.
1.0-x86-mingw32/lib/bcrypt.rb:12:in `<top (required)>'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-
4.0.0/lib/active_support/dependencies.rb:228:in `require'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-
4.0.0/lib/active_support/dependencies.rb:228:in `block in require'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-
4.0.0/lib/active_support/dependencies.rb:211:in `block in load_dependency'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-
4.0.0/lib/active_support/dependencies.rb:615:in `new_constants_in'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-
4.0.0/lib/active_support/dependencies.rb:211:in `load_dependency'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-
4.0.0/lib/active_support/dependencies.rb:228:in `require'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/bundler/gems/devise
-3c519b13ff94/lib/devise/models/database_authenticatable.rb:2:in `<top (required
)>'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/bundler/gems/devise
-3c519b13ff94/lib/devise/models.rb:97:in `const_get'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/bundler/gems/devise
-3c519b13ff94/lib/devise/models.rb:97:in `block (2 levels) in devise'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/bundler/gems/devise
-3c519b13ff94/lib/devise/models.rb:92:in `each'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/bundler/gems/devise
-3c519b13ff94/lib/devise/models.rb:92:in `block in devise'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/bundler/gems/devise
-3c519b13ff94/lib/devise/models.rb:123:in `devise_modules_hook!'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/bundler/gems/devise
-3c519b13ff94/lib/devise/models.rb:90:in `devise'
from C:/Sites/blogbar/app/models/user.rb:5:in `<class:User>'
from C:/Sites/blogbar/app/models/user.rb:1:in `<top (required)>'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-
4.0.0/lib/active_support/dependencies.rb:423:in `load'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-
4.0.0/lib/active_support/dependencies.rb:423:in `block in load_file'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-
4.0.0/lib/active_support/dependencies.rb:615:in `new_constants_in'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-
4.0.0/lib/active_support/dependencies.rb:422:in `load_file'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-
4.0.0/lib/active_support/dependencies.rb:323:in `require_or_load'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-
4.0.0/lib/active_support/dependencies.rb:462:in `load_missing_constant'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-
4.0.0/lib/active_support/dependencies.rb:183:in `const_missing'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-
4.0.0/lib/active_support/inflector/methods.rb:226:in `const_get'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-
4.0.0/lib/active_support/inflector/methods.rb:226:in `block in constantize'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-
4.0.0/lib/active_support/inflector/methods.rb:224:in `each'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-
4.0.0/lib/active_support/inflector/methods.rb:224:in `inject'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-
4.0.0/lib/active_support/inflector/methods.rb:224:in `constantize'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-
4.0.0/lib/active_support/dependencies.rb:534:in `get'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-
4.0.0/lib/active_support/dependencies.rb:565:in `constantize'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/bundler/gems/devise
-3c519b13ff94/lib/devise.rb:274:in `get'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/bundler/gems/devise
-3c519b13ff94/lib/devise/mapping.rb:77:in `to'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/bundler/gems/devise
-3c519b13ff94/lib/devise/mapping.rb:72:in `modules'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/bundler/gems/devise
-3c519b13ff94/lib/devise/mapping.rb:89:in `routes'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/bundler/gems/devise
-3c519b13ff94/lib/devise/mapping.rb:156:in `default_used_route'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/bundler/gems/devise
-3c519b13ff94/lib/devise/mapping.rb:66:in `initialize'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/bundler/gems/devise
-3c519b13ff94/lib/devise.rb:308:in `new'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/bundler/gems/devise
-3c519b13ff94/lib/devise.rb:308:in `add_mapping'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/bundler/gems/devise
-3c519b13ff94/lib/devise/rails/routes.rb:208:in `block in devise_for'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/bundler/gems/devise
-3c519b13ff94/lib/devise/rails/routes.rb:207:in `each'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/bundler/gems/devise
-3c519b13ff94/lib/devise/rails/routes.rb:207:in `devise_for'
from C:/Sites/blogbar/config/routes.rb:3:in `block in <top (required)>'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/actionpack-4.0
.0/lib/action_dispatch/routing/route_set.rb:316:in `instance_exec'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/actionpack-4.0
.0/lib/action_dispatch/routing/route_set.rb:316:in `eval_block'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/actionpack-4.0
.0/lib/action_dispatch/routing/route_set.rb:294:in `draw'
from C:/Sites/blogbar/config/routes.rb:1:in `<top (required)>'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-
4.0.0/lib/active_support/dependencies.rb:222:in `load'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-
4.0.0/lib/active_support/dependencies.rb:222:in `block in load'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-
4.0.0/lib/active_support/dependencies.rb:213:in `load_dependency'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-
4.0.0/lib/active_support/dependencies.rb:222:in `load'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.0.0
/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-4.0.0
/lib/rails/application/routes_reloader.rb:40:in `each'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.0.0
/lib/rails/application/routes_reloader.rb:40:in `load_paths'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.0.0
/lib/rails/application/routes_reloader.rb:16:in `reload!'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.0.0
/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-
4.0.0/lib/active_support/file_update_checker.rb:75:in `call'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-
4.0.0/lib/active_support/file_update_checker.rb:75:in `execute'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.0.0
/lib/rails/application/routes_reloader.rb:27:in `updater'
from C:65535:in `execute_if_updated'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.0.0
/lib/rails/application/finisher.rb:69:in `block in <module:Finisher>'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.0.0
/lib/rails/initializable.rb:30:in `instance_exec'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.0.0
/lib/rails/initializable.rb:30:in `run'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.0.0
/lib/rails/initializable.rb:55:in `block in run_initializers'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/tsort.rb:150:in `block i
n tsort_each'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/tsort.rb:183:in `block (
2 levels) in each_strongly_connected_component'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/tsort.rb:219:in `each_st
rongly_connected_component_from'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/tsort.rb:182:in `block i
n each_strongly_connected_component'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/tsort.rb:180:in `each'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/tsort.rb:180:in `each_st
rongly_connected_component'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/tsort.rb:148:in `tsort_e
ach'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.0.0
/lib/rails/initializable.rb:54:in `run_initializers'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.0.0
/lib/rails/application.rb:215:in `initialize!'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.0.0
/lib/rails/railtie/configurable.rb:30:in `method_missing'
from C:/Sites/blogbar/config/environment.rb:5:in `<top (required)>'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-
4.0.0/lib/active_support/dependencies.rb:228:in `require'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-
4.0.0/lib/active_support/dependencies.rb:228:in `block in require'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-
4.0.0/lib/active_support/dependencies.rb:213:in `load_dependency'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-
4.0.0/lib/active_support/dependencies.rb:228:in `require'
from C:/Sites/blogbar/config.ru:3:in `block in <main>'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rack-1.5.2/lib
/rack/builder.rb:55:in `instance_eval'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rack-1.5.2/lib
/rack/builder.rb:55:in `initialize'
from C:/Sites/blogbar/config.ru:in `new'
from C:/Sites/blogbar/config.ru:in `<main>'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rack-1.5.2/lib
/rack/builder.rb:49:in `eval'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rack-1.5.2/lib
/rack/builder.rb:49:in `new_from_string'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rack-1.5.2/lib
/rack/builder.rb:40:in `parse_file'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rack-1.5.2/lib
/rack/server.rb:277:in `build_app_and_options_from_config'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rack-1.5.2/lib
/rack/server.rb:199:in `app'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.0.0
/lib/rails/commands/server.rb:48:in `app'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rack-1.5.2/lib
/rack/server.rb:314:in `wrapped_app'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.0.0
/lib/rails/commands/server.rb:75:in `start'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.0.0
/lib/rails/commands.rb:78:in `block in <top (required)>'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.0.0
/lib/rails/commands.rb:73:in `tap'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.0.0
/lib/rails/commands.rb:73:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'
Looks like 'bcrypt_ext' gem is not installed.
Add this gem and\or do
bundle install
Related
I ran rake db:migrate, and the migration worked. However, it gives me this error when i try to use any rake command.
/Library/Ruby/Gems/2.0.0/gems/devise-3.5.6/lib/devise/models.rb:80:in `map': undefined method `to_sym' for nil:NilClass (NoMethodError)
I'm not sure how to fix this, as rake db:rollback also causes the error.
EDIT
devise :database_authenticatable, :registerable,
:recoverable, :rememberable, :trackable, :validatable,
From the user
and here is the whole error
from /Library/Ruby/Gems/2.0.0/gems/devise-3.5.6/lib/devise/models.rb:80:in `devise'
from /Users/Noah/Desktop/Wellness/welness/app/models/user.rb:4:in `<class:User>'
from /Users/Noah/Desktop/Wellness/welness/app/models/user.rb:1:in `<top (required)>'
from /Library/Ruby/Gems/2.0.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:457:in `load'
from /Library/Ruby/Gems/2.0.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:457:in `block in load_file'
from /Library/Ruby/Gems/2.0.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:647:in `new_constants_in'
from /Library/Ruby/Gems/2.0.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:456:in `load_file'
from /Library/Ruby/Gems/2.0.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:354:in `require_or_load'
from /Library/Ruby/Gems/2.0.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:494:in `load_missing_constant'
from /Library/Ruby/Gems/2.0.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:184:in `const_missing'
from /Library/Ruby/Gems/2.0.0/gems/activesupport-4.2.5/lib/active_support/inflector/methods.rb:261:in `const_get'
from /Library/Ruby/Gems/2.0.0/gems/activesupport-4.2.5/lib/active_support/inflector/methods.rb:261:in `block in constantize'
from /Library/Ruby/Gems/2.0.0/gems/activesupport-4.2.5/lib/active_support/inflector/methods.rb:259:in `each'
from /Library/Ruby/Gems/2.0.0/gems/activesupport-4.2.5/lib/active_support/inflector/methods.rb:259:in `inject'
from /Library/Ruby/Gems/2.0.0/gems/activesupport-4.2.5/lib/active_support/inflector/methods.rb:259:in `constantize'
from /Library/Ruby/Gems/2.0.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:566:in `get'
from /Library/Ruby/Gems/2.0.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:597:in `constantize'
from /Library/Ruby/Gems/2.0.0/gems/devise-3.5.6/lib/devise.rb:292:in `get'
from /Library/Ruby/Gems/2.0.0/gems/devise-3.5.6/lib/devise/mapping.rb:81:in `to'
from /Library/Ruby/Gems/2.0.0/gems/devise-3.5.6/lib/devise/mapping.rb:76:in `modules'
from /Library/Ruby/Gems/2.0.0/gems/devise-3.5.6/lib/devise/mapping.rb:93:in `routes'
from /Library/Ruby/Gems/2.0.0/gems/devise-3.5.6/lib/devise/mapping.rb:160:in `default_used_route'
from /Library/Ruby/Gems/2.0.0/gems/devise-3.5.6/lib/devise/mapping.rb:70:in `initialize'
from /Library/Ruby/Gems/2.0.0/gems/devise-3.5.6/lib/devise.rb:326:in `new'
from /Library/Ruby/Gems/2.0.0/gems/devise-3.5.6/lib/devise.rb:326:in `add_mapping'
from /Library/Ruby/Gems/2.0.0/gems/devise-3.5.6/lib/devise/rails/routes.rb:238:in `block in devise_for'
from /Library/Ruby/Gems/2.0.0/gems/devise-3.5.6/lib/devise/rails/routes.rb:237:in `each'
from /Library/Ruby/Gems/2.0.0/gems/devise-3.5.6/lib/devise/rails/routes.rb:237:in `devise_for'
from /Users/Noah/Desktop/Wellness/welness/config/routes.rb:7:in `block in <top (required)>'
from /Library/Ruby/Gems/2.0.0/gems/actionpack-4.2.5/lib/action_dispatch/routing/route_set.rb:434:in `instance_exec'
from /Library/Ruby/Gems/2.0.0/gems/actionpack-4.2.5/lib/action_dispatch/routing/route_set.rb:434:in `eval_block'
from /Library/Ruby/Gems/2.0.0/gems/actionpack-4.2.5/lib/action_dispatch/routing/route_set.rb:412:in `draw'
from /Users/Noah/Desktop/Wellness/welness/config/routes.rb:1:in `<top (required)>'
from /Library/Ruby/Gems/2.0.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:268:in `load'
from /Library/Ruby/Gems/2.0.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:268:in `block in load'
from /Library/Ruby/Gems/2.0.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:240:in `load_dependency'
from /Library/Ruby/Gems/2.0.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:268:in `load'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.2.5/lib/rails/application/routes_reloader.rb:40:in `block in load_paths'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.2.5/lib/rails/application/routes_reloader.rb:40:in `each'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.2.5/lib/rails/application/routes_reloader.rb:40:in `load_paths'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.2.5/lib/rails/application/routes_reloader.rb:16:in `reload!'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.2.5/lib/rails/application/routes_reloader.rb:26:in `block in updater'
from /Library/Ruby/Gems/2.0.0/gems/activesupport-4.2.5/lib/active_support/file_update_checker.rb:75:in `call'
from /Library/Ruby/Gems/2.0.0/gems/activesupport-4.2.5/lib/active_support/file_update_checker.rb:75:in `execute'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.2.5/lib/rails/application/routes_reloader.rb:27:in `updater'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.2.5/lib/rails/application/routes_reloader.rb:7:in `execute_if_updated'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.2.5/lib/rails/application/finisher.rb:69:in `block in <module:Finisher>'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.2.5/lib/rails/initializable.rb:30:in `instance_exec'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.2.5/lib/rails/initializable.rb:30:in `run'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.2.5/lib/rails/initializable.rb:55:in `block in run_initializers'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/tsort.rb:150:in `block in tsort_each'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/tsort.rb:183:in `block (2 levels) in each_strongly_connected_component'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/tsort.rb:219:in `each_strongly_connected_component_from'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/tsort.rb:182:in `block in each_strongly_connected_component'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/tsort.rb:180:in `each'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/tsort.rb:180:in `each_strongly_connected_component'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/tsort.rb:148:in `tsort_each'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.2.5/lib/rails/initializable.rb:54:in `run_initializers'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.2.5/lib/rails/application.rb:352:in `initialize!'
from /Users/Noah/Desktop/Wellness/welness/config/environment.rb:5:in `<top (required)>'
from /Library/Ruby/Gems/2.0.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:274:in `require'
from /Library/Ruby/Gems/2.0.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:274:in `block in require'
from /Library/Ruby/Gems/2.0.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:240:in `load_dependency'
from /Library/Ruby/Gems/2.0.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:274:in `require'
from /Users/Noah/Desktop/Wellness/welness/config.ru:3:in `block in <main>'
from /Library/Ruby/Gems/2.0.0/gems/rack-1.6.4/lib/rack/builder.rb:55:in `instance_eval'
from /Library/Ruby/Gems/2.0.0/gems/rack-1.6.4/lib/rack/builder.rb:55:in `initialize'
from /Users/Noah/Desktop/Wellness/welness/config.ru:in `new'
from /Users/Noah/Desktop/Wellness/welness/config.ru:in `<main>'
from /Library/Ruby/Gems/2.0.0/gems/rack-1.6.4/lib/rack/builder.rb:49:in `eval'
from /Library/Ruby/Gems/2.0.0/gems/rack-1.6.4/lib/rack/builder.rb:49:in `new_from_string'
from /Library/Ruby/Gems/2.0.0/gems/rack-1.6.4/lib/rack/builder.rb:40:in `parse_file'
from /Library/Ruby/Gems/2.0.0/gems/rack-1.6.4/lib/rack/server.rb:299:in `build_app_and_options_from_config'
from /Library/Ruby/Gems/2.0.0/gems/rack-1.6.4/lib/rack/server.rb:208:in `app'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.2.5/lib/rails/commands/server.rb:61:in `app'
from /Library/Ruby/Gems/2.0.0/gems/rack-1.6.4/lib/rack/server.rb:336:in `wrapped_app'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.2.5/lib/rails/commands/server.rb:139:in `log_to_stdout'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.2.5/lib/rails/commands/server.rb:78:in `start'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.2.5/lib/rails/commands/commands_tasks.rb:80:in `block in server'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.2.5/lib/rails/commands/commands_tasks.rb:75:in `tap'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.2.5/lib/rails/commands/commands_tasks.rb:75:in `server'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.2.5/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.2.5/lib/rails/commands.rb:17:in `<top (required)>'
from /Users/Noah/Desktop/Wellness/welness/bin/rails:9:in `require'
from /Users/Noah/Desktop/Wellness/welness/bin/rails:9:in `<top (required)>'
from /Library/Ruby/Gems/2.0.0/gems/spring-1.6.4/lib/spring/client/rails.rb:28:in `load'
from /Library/Ruby/Gems/2.0.0/gems/spring-1.6.4/lib/spring/client/rails.rb:28:in `call'
from /Library/Ruby/Gems/2.0.0/gems/spring-1.6.4/lib/spring/client/command.rb:7:in `call'
from /Library/Ruby/Gems/2.0.0/gems/spring-1.6.4/lib/spring/client.rb:28:in `run'
from /Library/Ruby/Gems/2.0.0/gems/spring-1.6.4/bin/spring:49:in `<top (required)>'
from /Library/Ruby/Gems/2.0.0/gems/spring-1.6.4/lib/spring/binstub.rb:11:in `load'
from /Library/Ruby/Gems/2.0.0/gems/spring-1.6.4/lib/spring/binstub.rb:11:in `<top (required)>'
from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /Users/Noah/Desktop/Wellness/welness/bin/spring:13:in `<top (required)>'
from bin/rails:3:in `load'
from bin/rails:3:in `<main>'
its rake v 11.1.2
This question already has an answer here:
RoR Hartl CH 7 bcrypt error when trying to load Users URL
(1 answer)
Closed 7 years ago.
when I tried rails s after bundle install
Connecting to database specified by database.yml
Exiting
C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-3.2.6/lib/act
ive_support/dependencies.rb:251:in `require': cannot load such file -- bcrypt (L
oadError)
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-
3.2.6/lib/active_support/dependencies.rb:251:in `block in require'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-
3.2.6/lib/active_support/dependencies.rb:234:in `block in load_dependency'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-
3.2.6/lib/active_support/dependencies.rb:639:in `new_constants_in'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-
3.2.6/lib/active_support/dependencies.rb:234:in `load_dependency'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-
3.2.6/lib/active_support/dependencies.rb:251:in `require'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/devise-2.2.3/l
ib/devise/models/database_authenticatable.rb:2:in `<top (required)>'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/devise-2.2.3/l
ib/devise/models.rb:97:in `const_get'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/devise-2.2.3/l
ib/devise/models.rb:97:in `block (2 levels) in devise'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/devise-2.2.3/l
ib/devise/models.rb:92:in `each'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/devise-2.2.3/l
ib/devise/models.rb:92:in `block in devise'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/devise-2.2.3/l
ib/devise/models.rb:123:in `devise_modules_hook!'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/devise-2.2.3/l
ib/devise/models.rb:90:in `devise'
from C:/Users/alokkumar.jha/Desktop/BioFlow/GVKbio_Flow/app/models/user.
rb:5:in `<class:User>'
from C:/Users/alokkumar.jha/Desktop/BioFlow/GVKbio_Flow/app/models/user.
rb:1:in `<top (required)>'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-
3.2.6/lib/active_support/dependencies.rb:469:in `load'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-
3.2.6/lib/active_support/dependencies.rb:469:in `block in load_file'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-
3.2.6/lib/active_support/dependencies.rb:639:in `new_constants_in'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-
3.2.6/lib/active_support/dependencies.rb:468:in `load_file'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-
3.2.6/lib/active_support/dependencies.rb:353:in `require_or_load'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-
3.2.6/lib/active_support/dependencies.rb:502:in `load_missing_constant'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-
3.2.6/lib/active_support/dependencies.rb:192:in `block in const_missing'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-
3.2.6/lib/active_support/dependencies.rb:190:in `each'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-
3.2.6/lib/active_support/dependencies.rb:190:in `const_missing'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-
3.2.6/lib/active_support/inflector/methods.rb:229:in `block in constantize'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-
3.2.6/lib/active_support/inflector/methods.rb:228:in `each'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-
3.2.6/lib/active_support/inflector/methods.rb:228:in `constantize'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-
3.2.6/lib/active_support/dependencies.rb:554:in `get'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-
3.2.6/lib/active_support/dependencies.rb:588:in `constantize'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/devise-2.2.3/l
ib/devise.rb:267:in `get'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/devise-2.2.3/l
ib/devise/mapping.rb:77:in `to'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/devise-2.2.3/l
ib/devise/mapping.rb:72:in `modules'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/devise-2.2.3/l
ib/devise/mapping.rb:89:in `routes'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/devise-2.2.3/l
ib/devise/mapping.rb:156:in `default_used_route'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/devise-2.2.3/l
ib/devise/mapping.rb:66:in `initialize'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/devise-2.2.3/l
ib/devise.rb:301:in `new'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/devise-2.2.3/l
ib/devise.rb:301:in `add_mapping'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/devise-2.2.3/l
ib/devise/rails/routes.rb:208:in `block in devise_for'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/devise-2.2.3/l
ib/devise/rails/routes.rb:207:in `each'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/devise-2.2.3/l
ib/devise/rails/routes.rb:207:in `devise_for'
from C:/Users/alokkumar.jha/Desktop/BioFlow/GVKbio_Flow/config/routes.rb
:6:in `block in <top (required)>'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/actionpack-3.2
.6/lib/action_dispatch/routing/route_set.rb:282:in `instance_exec'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/actionpack-3.2
.6/lib/action_dispatch/routing/route_set.rb:282:in `eval_block'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/actionpack-3.2
.6/lib/action_dispatch/routing/route_set.rb:260:in `draw'
from C:/Users/alokkumar.jha/Desktop/BioFlow/GVKbio_Flow/config/routes.rb
:2:in `<top (required)>'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-
3.2.6/lib/active_support/dependencies.rb:245:in `load'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-
3.2.6/lib/active_support/dependencies.rb:245:in `block in load'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-
3.2.6/lib/active_support/dependencies.rb:236:in `load_dependency'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-
3.2.6/lib/active_support/dependencies.rb:245:in `load'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/railties-3.2.6
/lib/rails/application/routes_reloader.rb:40:in `block in load_paths'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/railties-3.2.6
/lib/rails/application/routes_reloader.rb:40:in `each'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/railties-3.2.6
/lib/rails/application/routes_reloader.rb:40:in `load_paths'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/railties-3.2.6
/lib/rails/application/routes_reloader.rb:16:in `reload!'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/railties-3.2.6
/lib/rails/application/routes_reloader.rb:26:in `block in updater'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-
3.2.6/lib/active_support/file_update_checker.rb:78:in `call'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-
3.2.6/lib/active_support/file_update_checker.rb:78:in `execute'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/railties-3.2.6
/lib/rails/application/routes_reloader.rb:27:in `updater'
from C:in `execute_if_updated'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/railties-3.2.6
/lib/rails/application/finisher.rb:66:in `block in <module:Finisher>'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/railties-3.2.6
/lib/rails/initializable.rb:30:in `instance_exec'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/railties-3.2.6
/lib/rails/initializable.rb:30:in `run'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/railties-3.2.6
/lib/rails/initializable.rb:55:in `block in run_initializers'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/railties-3.2.6
/lib/rails/initializable.rb:54:in `each'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/railties-3.2.6
/lib/rails/initializable.rb:54:in `run_initializers'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/railties-3.2.6
/lib/rails/application.rb:136:in `initialize!'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/railties-3.2.6
/lib/rails/railtie/configurable.rb:30:in `method_missing'
from C:/Users/alokkumar.jha/Desktop/BioFlow/GVKbio_Flow/config/environme
nt.rb:5:in `<top (required)>'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-
3.2.6/lib/active_support/dependencies.rb:251:in `require'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-
3.2.6/lib/active_support/dependencies.rb:251:in `block in require'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-
3.2.6/lib/active_support/dependencies.rb:236:in `load_dependency'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-
3.2.6/lib/active_support/dependencies.rb:251:in `require'
from C:/Users/alokkumar.jha/Desktop/BioFlow/GVKbio_Flow/config.ru:3:in `
block in <main>'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/rack-1.4.5/lib
/rack/builder.rb:51:in `instance_eval'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/rack-1.4.5/lib
/rack/builder.rb:51:in `initialize'
from C:/Users/alokkumar.jha/Desktop/BioFlow/GVKbio_Flow/config.ru:in `ne
w'
from C:/Users/alokkumar.jha/Desktop/BioFlow/GVKbio_Flow/config.ru:in `<m
ain>'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/rack-1.4.5/lib
/rack/builder.rb:40:in `eval'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/rack-1.4.5/lib
/rack/builder.rb:40:in `parse_file'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/rack-1.4.5/lib
/rack/server.rb:200:in `app'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/railties-3.2.6
/lib/rails/commands/server.rb:46:in `app'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/rack-1.4.5/lib
/rack/server.rb:304:in `wrapped_app'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/rack-1.4.5/lib
/rack/server.rb:254:in `start'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/railties-3.2.6
/lib/rails/commands/server.rb:70:in `start'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/railties-3.2.6
/lib/rails/commands.rb:55:in `block in <top (required)>'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/railties-3.2.6
/lib/rails/commands.rb:50:in `tap'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/railties-3.2.6
/lib/rails/commands.rb:50:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
If you have run "bundle install" to install bcrypt, just restart the rails server.
The error message is very clear that you either not installed bcrypt gem or the bcrypt gem is not successful.
Open your gem file and add the below line and run bundle install. Be sure to restart the server.
gem 'bcrypt-ruby', '3.1.1.rc1', :require => 'bcrypt'
I have been working on an application and just installed the twitter bootstrap gem and installed 'therubyracer' gem using the https://github.com/hiranpeiris/therubyracer_for_windows tutorial, can anybody help with the following error I get when running 'rails server', any help here would be appreciated, I'm not sure whats gone wrong here?
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/actionpack-4.0.0/lib/action
_dispatch/routing/mapper.rb:229:in `default_controller_and_action': missing :con
troller (ArgumentError)
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/actionpack-4.0
.0/lib/action_dispatch/routing/mapper.rb:116:in `normalize_options!'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/actionpack-4.0
.0/lib/action_dispatch/routing/mapper.rb:64:in `initialize'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/actionpack-4.0
.0/lib/action_dispatch/routing/mapper.rb:1438:in `new'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/actionpack-4.0
.0/lib/action_dispatch/routing/mapper.rb:1438:in `add_route'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/actionpack-4.0
.0/lib/action_dispatch/routing/mapper.rb:1417:in `decomposed_match'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/actionpack-4.0
.0/lib/action_dispatch/routing/mapper.rb:1398:in `block in match'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/actionpack-4.0
.0/lib/action_dispatch/routing/mapper.rb:1389:in `each'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/actionpack-4.0
.0/lib/action_dispatch/routing/mapper.rb:1389:in `match'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/actionpack-4.0
.0/lib/action_dispatch/routing/mapper.rb:596:in `map_method'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/actionpack-4.0
.0/lib/action_dispatch/routing/mapper.rb:557:in `get'
from C:/Sites/socialeyes/config/routes.rb:4:in `block in <top (required)
>'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/actionpack-4.0
.0/lib/action_dispatch/routing/route_set.rb:316:in `instance_exec'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/actionpack-4.0
.0/lib/action_dispatch/routing/route_set.rb:316:in `eval_block'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/actionpack-4.0
.0/lib/action_dispatch/routing/route_set.rb:294:in `draw'
from C:/Sites/socialeyes/config/routes.rb:1:in `<top (required)>'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-
4.0.0/lib/active_support/dependencies.rb:222:in `load'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-
4.0.0/lib/active_support/dependencies.rb:222:in `block in load'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-
4.0.0/lib/active_support/dependencies.rb:213:in `load_dependency'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-
4.0.0/lib/active_support/dependencies.rb:222:in `load'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.0.0
/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-4.0.0
/lib/rails/application/routes_reloader.rb:40:in `each'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.0.0
/lib/rails/application/routes_reloader.rb:40:in `load_paths'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.0.0
/lib/rails/application/routes_reloader.rb:16:in `reload!'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.0.0
/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-
4.0.0/lib/active_support/file_update_checker.rb:75:in `call'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-
4.0.0/lib/active_support/file_update_checker.rb:75:in `execute'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.0.0
/lib/rails/application/routes_reloader.rb:27:in `updater'
from C:65535:in `execute_if_updated'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.0.0
/lib/rails/application/finisher.rb:69:in `block in <module:Finisher>'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.0.0
/lib/rails/initializable.rb:30:in `instance_exec'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.0.0
/lib/rails/initializable.rb:30:in `run'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.0.0
/lib/rails/initializable.rb:55:in `block in run_initializers'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/tsort.rb:150:in `block i
n tsort_each'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/tsort.rb:183:in `block (
2 levels) in each_strongly_connected_component'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/tsort.rb:219:in `each_st
rongly_connected_component_from'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/tsort.rb:182:in `block i
n each_strongly_connected_component'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/tsort.rb:180:in `each'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/tsort.rb:180:in `each_st
rongly_connected_component'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/tsort.rb:148:in `tsort_e
ach'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.0.0
/lib/rails/initializable.rb:54:in `run_initializers'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.0.0
/lib/rails/application.rb:215:in `initialize!'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.0.0
/lib/rails/railtie/configurable.rb:30:in `method_missing'
from C:/Sites/socialeyes/config/environment.rb:5:in `<top (required)>'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-
4.0.0/lib/active_support/dependencies.rb:228:in `require'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-
4.0.0/lib/active_support/dependencies.rb:228:in `block in require'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-
4.0.0/lib/active_support/dependencies.rb:213:in `load_dependency'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-
4.0.0/lib/active_support/dependencies.rb:228:in `require'
from C:/Sites/socialeyes/config.ru:3:in `block in <main>'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rack-1.5.2/lib
/rack/builder.rb:55:in `instance_eval'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rack-1.5.2/lib
/rack/builder.rb:55:in `initialize'
from C:/Sites/socialeyes/config.ru:in `new'
from C:/Sites/socialeyes/config.ru:in `<main>'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rack-1.5.2/lib
/rack/builder.rb:49:in `eval'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rack-1.5.2/lib
/rack/builder.rb:49:in `new_from_string'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rack-1.5.2/lib
/rack/builder.rb:40:in `parse_file'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rack-1.5.2/lib
/rack/server.rb:277:in `build_app_and_options_from_config'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rack-1.5.2/lib
/rack/server.rb:199:in `app'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.0.0
/lib/rails/commands/server.rb:48:in `app'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rack-1.5.2/lib
/rack/server.rb:314:in `wrapped_app'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.0.0
/lib/rails/commands/server.rb:75:in `start'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.0.0
/lib/rails/commands.rb:78:in `block in <top (required)>'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.0.0
/lib/rails/commands.rb:73:in `tap'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.0.0
/lib/rails/commands.rb:73:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'
You have to define a root route in your config/routes.rb file or at least one route.
Here is an exemple :
# At least a route (here for HelloController)
get '/hello' => 'hello#index'
# Or a root route
root 'hello#index'
I'm having a headache trying to figure this out.
Everytime i try to deploy my app into productio i get this error:
/Users/Rafael/.rvm/gems/ruby-1.9.3-p429/gems/aws-sdk-1.3.9/lib/aws/core/service_interface.rb:24:in `module_eval': undefined method `each' for nil:NilClass (NoMethodError)
from /Users/Rafael/.rvm/gems/ruby-1.9.3-p429/gems/aws-sdk-1.3.9/lib/aws/simple_email_service/client/xml.rb:29:in `<module:XML>'
from /Users/Rafael/.rvm/gems/ruby-1.9.3-p429/gems/aws-sdk-1.3.9/lib/aws/simple_email_service/client/xml.rb:19:in `<class:Client>'
from /Users/Rafael/.rvm/gems/ruby-1.9.3-p429/gems/aws-sdk-1.3.9/lib/aws/simple_email_service/client/xml.rb:16:in `<class:SimpleEmailService>'
from /Users/Rafael/.rvm/gems/ruby-1.9.3-p429/gems/aws-sdk-1.3.9/lib/aws/simple_email_service/client/xml.rb:15:in `<module:AWS>'
from /Users/Rafael/.rvm/gems/ruby-1.9.3-p429/gems/aws-sdk-1.3.9/lib/aws/simple_email_service/client/xml.rb:14:in `<top (required)>'
from (eval):1:in `configure_client'
from /Users/Rafael/.rvm/gems/ruby-1.9.3-p429/gems/aws-sdk-1.3.9/lib/aws/core/client.rb:484:in `module_eval'
from /Users/Rafael/.rvm/gems/ruby-1.9.3-p429/gems/aws-sdk-1.3.9/lib/aws/core/client.rb:484:in `configure_client'
from /Users/Rafael/.rvm/gems/ruby-1.9.3-p429/gems/aws-sdk-1.3.9/lib/aws/core/configured_client_methods.rb:27:in `configure_client'
from /Users/Rafael/.rvm/gems/ruby-1.9.3-p429/gems/aws-sdk-1.3.9/lib/aws/simple_email_service/client.rb:32:in `<class:Client>'
from /Users/Rafael/.rvm/gems/ruby-1.9.3-p429/gems/aws-sdk-1.3.9/lib/aws/simple_email_service/client.rb:18:in `<class:SimpleEmailService>'
from /Users/Rafael/.rvm/gems/ruby-1.9.3-p429/gems/aws-sdk-1.3.9/lib/aws/simple_email_service/client.rb:15:in `<module:AWS>'
from /Users/Rafael/.rvm/gems/ruby-1.9.3-p429/gems/aws-sdk-1.3.9/lib/aws/simple_email_service/client.rb:14:in `<top (required)>'
from /Users/Rafael/.rvm/gems/ruby-1.9.3-p429/gems/aws-sdk-1.3.9/lib/aws/simple_email_service/errors.rb:20:in `<module:Errors>'
from /Users/Rafael/.rvm/gems/ruby-1.9.3-p429/gems/aws-sdk-1.3.9/lib/aws/simple_email_service/errors.rb:18:in `<class:SimpleEmailService>'
from /Users/Rafael/.rvm/gems/ruby-1.9.3-p429/gems/aws-sdk-1.3.9/lib/aws/simple_email_service/errors.rb:15:in `<module:AWS>'
from /Users/Rafael/.rvm/gems/ruby-1.9.3-p429/gems/aws-sdk-1.3.9/lib/aws/simple_email_service/errors.rb:14:in `<top (required)>'
from (eval):1:in `included'
from /Users/Rafael/.rvm/gems/ruby-1.9.3-p429/gems/aws-sdk-1.3.9/lib/aws/core/service_interface.rb:24:in `module_eval'
from /Users/Rafael/.rvm/gems/ruby-1.9.3-p429/gems/aws-sdk-1.3.9/lib/aws/core/service_interface.rb:24:in `included'
from /Users/Rafael/.rvm/gems/ruby-1.9.3-p429/gems/aws-sdk-1.3.9/lib/aws/simple_email_service.rb:146:in `include'
from /Users/Rafael/.rvm/gems/ruby-1.9.3-p429/gems/aws-sdk-1.3.9/lib/aws/simple_email_service.rb:146:in `<class:SimpleEmailService>'
from /Users/Rafael/.rvm/gems/ruby-1.9.3-p429/gems/aws-sdk-1.3.9/lib/aws/simple_email_service.rb:136:in `<module:AWS>'
from /Users/Rafael/.rvm/gems/ruby-1.9.3-p429/gems/aws-sdk-1.3.9/lib/aws/simple_email_service.rb:17:in `<top (required)>'
from /Users/Rafael/.rvm/gems/ruby-1.9.3-p429/gems/aws-sdk-1.3.9/lib/aws/rails.rb:157:in `block in add_action_mailer_delivery_method'
from /Users/Rafael/.rvm/gems/ruby-1.9.3-p429/gems/activesupport-3.2.13/lib/active_support/lazy_load_hooks.rb:36:in `instance_eval'
from /Users/Rafael/.rvm/gems/ruby-1.9.3-p429/gems/activesupport-3.2.13/lib/active_support/lazy_load_hooks.rb:36:in `execute_hook'
from /Users/Rafael/.rvm/gems/ruby-1.9.3-p429/gems/activesupport-3.2.13/lib/active_support/lazy_load_hooks.rb:43:in `block in run_load_hooks'
from /Users/Rafael/.rvm/gems/ruby-1.9.3-p429/gems/activesupport-3.2.13/lib/active_support/lazy_load_hooks.rb:42:in `each'
from /Users/Rafael/.rvm/gems/ruby-1.9.3-p429/gems/activesupport-3.2.13/lib/active_support/lazy_load_hooks.rb:42:in `run_load_hooks'
from /Users/Rafael/.rvm/gems/ruby-1.9.3-p429/gems/actionmailer-3.2.13/lib/action_mailer/base.rb:746:in `<class:Base>'
from /Users/Rafael/.rvm/gems/ruby-1.9.3-p429/gems/actionmailer-3.2.13/lib/action_mailer/base.rb:326:in `<module:ActionMailer>'
from /Users/Rafael/.rvm/gems/ruby-1.9.3-p429/gems/actionmailer-3.2.13/lib/action_mailer/base.rb:11:in `<top (required)>'
from /Users/Rafael/.rvm/gems/ruby-1.9.3-p429/gems/activesupport-3.2.13/lib/active_support/inflector/methods.rb:230:in `const_get'
from /Users/Rafael/.rvm/gems/ruby-1.9.3-p429/gems/activesupport-3.2.13/lib/active_support/inflector/methods.rb:230:in `block in constantize'
from /Users/Rafael/.rvm/gems/ruby-1.9.3-p429/gems/activesupport-3.2.13/lib/active_support/inflector/methods.rb:229:in `each'
from /Users/Rafael/.rvm/gems/ruby-1.9.3-p429/gems/activesupport-3.2.13/lib/active_support/inflector/methods.rb:229:in `constantize'
from /Users/Rafael/.rvm/gems/ruby-1.9.3-p429/gems/activesupport-3.2.13/lib/active_support/core_ext/string/inflections.rb:54:in `constantize'
from /Users/Rafael/.rvm/gems/ruby-1.9.3-p429/gems/devise-3.0.0/app/mailers/devise/mailer.rb:1:in `<top (required)>'
from /Users/Rafael/.rvm/gems/ruby-1.9.3-p429/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
from /Users/Rafael/.rvm/gems/ruby-1.9.3-p429/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `block in require'
from /Users/Rafael/.rvm/gems/ruby-1.9.3-p429/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency'
from /Users/Rafael/.rvm/gems/ruby-1.9.3-p429/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
from /Users/Rafael/.rvm/gems/ruby-1.9.3-p429/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:359:in `require_or_load'
from /Users/Rafael/.rvm/gems/ruby-1.9.3-p429/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:313:in `depend_on'
from /Users/Rafael/.rvm/gems/ruby-1.9.3-p429/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:225:in `require_dependency'
from /Users/Rafael/.rvm/gems/ruby-1.9.3-p429/gems/railties-3.2.13/lib/rails/engine.rb:439:in `block (2 levels) in eager_load!'
from /Users/Rafael/.rvm/gems/ruby-1.9.3-p429/gems/railties-3.2.13/lib/rails/engine.rb:438:in `each'
from /Users/Rafael/.rvm/gems/ruby-1.9.3-p429/gems/railties-3.2.13/lib/rails/engine.rb:438:in `block in eager_load!'
from /Users/Rafael/.rvm/gems/ruby-1.9.3-p429/gems/railties-3.2.13/lib/rails/engine.rb:436:in `each'
from /Users/Rafael/.rvm/gems/ruby-1.9.3-p429/gems/railties-3.2.13/lib/rails/engine.rb:436:in `eager_load!'
from /Users/Rafael/.rvm/gems/ruby-1.9.3-p429/gems/railties-3.2.13/lib/rails/application/railties.rb:8:in `each'
from /Users/Rafael/.rvm/gems/ruby-1.9.3-p429/gems/railties-3.2.13/lib/rails/application/railties.rb:8:in `all'
from /Users/Rafael/.rvm/gems/ruby-1.9.3-p429/gems/railties-3.2.13/lib/rails/engine.rb:434:in `eager_load!'
from /Users/Rafael/.rvm/gems/ruby-1.9.3-p429/gems/railties-3.2.13/lib/rails/application/finisher.rb:53:in `block in <module:Finisher>'
from /Users/Rafael/.rvm/gems/ruby-1.9.3-p429/gems/railties-3.2.13/lib/rails/initializable.rb:30:in `instance_exec'
from /Users/Rafael/.rvm/gems/ruby-1.9.3-p429/gems/railties-3.2.13/lib/rails/initializable.rb:30:in `run'
from /Users/Rafael/.rvm/gems/ruby-1.9.3-p429/gems/railties-3.2.13/lib/rails/initializable.rb:55:in `block in run_initializers'
from /Users/Rafael/.rvm/gems/ruby-1.9.3-p429/gems/railties-3.2.13/lib/rails/initializable.rb:54:in `each'
from /Users/Rafael/.rvm/gems/ruby-1.9.3-p429/gems/railties-3.2.13/lib/rails/initializable.rb:54:in `run_initializers'
from /Users/Rafael/.rvm/gems/ruby-1.9.3-p429/gems/railties-3.2.13/lib/rails/application.rb:136:in `initialize!'
from /Users/Rafael/.rvm/gems/ruby-1.9.3-p429/gems/railties-3.2.13/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /Users/Rafael/Dev/Nuveo/StoresEngine/config/environment.rb:5:in `<top (required)>'
from /Users/Rafael/.rvm/gems/ruby-1.9.3-p429/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
from /Users/Rafael/.rvm/gems/ruby-1.9.3-p429/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `block in require'
from /Users/Rafael/.rvm/gems/ruby-1.9.3-p429/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency'
from /Users/Rafael/.rvm/gems/ruby-1.9.3-p429/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
from /Users/Rafael/Dev/Nuveo/StoresEngine/config.ru:3:in `block in <main>'
from /Users/Rafael/.rvm/gems/ruby-1.9.3-p429/gems/rack-1.4.5/lib/rack/builder.rb:51:in `instance_eval'
from /Users/Rafael/.rvm/gems/ruby-1.9.3-p429/gems/rack-1.4.5/lib/rack/builder.rb:51:in `initialize'
from /Users/Rafael/Dev/Nuveo/StoresEngine/config.ru:in `new'
from /Users/Rafael/Dev/Nuveo/StoresEngine/config.ru:in `<main>'
from /Users/Rafael/.rvm/gems/ruby-1.9.3-p429/gems/rack-1.4.5/lib/rack/builder.rb:40:in `eval'
from /Users/Rafael/.rvm/gems/ruby-1.9.3-p429/gems/rack-1.4.5/lib/rack/builder.rb:40:in `parse_file'
from /Users/Rafael/.rvm/gems/ruby-1.9.3-p429/gems/rack-1.4.5/lib/rack/server.rb:200:in `app'
from /Users/Rafael/.rvm/gems/ruby-1.9.3-p429/gems/railties-3.2.13/lib/rails/commands/server.rb:46:in `app'
from /Users/Rafael/.rvm/gems/ruby-1.9.3-p429/gems/rack-1.4.5/lib/rack/server.rb:304:in `wrapped_app'
from /Users/Rafael/.rvm/gems/ruby-1.9.3-p429/gems/rack-1.4.5/lib/rack/server.rb:254:in `start'
from /Users/Rafael/.rvm/gems/ruby-1.9.3-p429/gems/railties-3.2.13/lib/rails/commands/server.rb:70:in `start'
from /Users/Rafael/.rvm/gems/ruby-1.9.3-p429/gems/railties-3.2.13/lib/rails/commands.rb:55:in `block in <top (required)>'
from /Users/Rafael/.rvm/gems/ruby-1.9.3-p429/gems/railties-3.2.13/lib/rails/commands.rb:50:in `tap'
from /Users/Rafael/.rvm/gems/ruby-1.9.3-p429/gems/railties-3.2.13/lib/rails/commands.rb:50:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
But if i disable the config.cache_classes setting it to false, the error wont show up anymore.
But there is no way that im leaving cache_classes = false into production.
Can someone help me with this?
Many thanks
The AWS SDK was out of date.
Updating it solved the hole trouble :)
Thanks Deefour
So I'm working on my app and everything is great. All tests pass, app works beautifully. Then, I switch branches without making any changes, switch back, and get this error when I try to run "rails server" again. This has happened a few times now and I have no idea why.
/Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:239:in `require': no such file to load -- bcrypt_ext (LoadError)
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:239:in `block in require'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:225:in `block in load_dependency'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:591:in `new_constants_in'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:225:in `load_dependency'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:239:in `require'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/bcrypt-ruby-3.0.1/lib/bcrypt.rb:12:in `<top (required)>'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:239:in `require'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:239:in `block in require'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:225:in `block in load_dependency'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:591:in `new_constants_in'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:225:in `load_dependency'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:239:in `require'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/devise-1.4.9/lib/devise/models/database_authenticatable.rb:2:in `<top (required)>'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/devise-1.4.9/lib/devise/models.rb:60:in `const_get'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/devise-1.4.9/lib/devise/models.rb:60:in `block (2 levels) in devise'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/devise-1.4.9/lib/devise/models.rb:59:in `each'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/devise-1.4.9/lib/devise/models.rb:59:in `block in devise'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/devise-1.4.9/lib/devise/models.rb:86:in `devise_modules_hook!'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/devise-1.4.9/lib/devise/models.rb:58:in `devise'
from /Users/beatjunkie84/Desktop/ProjectX/app/models/user.rb:16:in `<class:User>'
from /Users/beatjunkie84/Desktop/ProjectX/app/models/user.rb:13:in `<top (required)>'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:454:in `load'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:454:in `block in load_file'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:591:in `new_constants_in'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:453:in `load_file'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:340:in `require_or_load'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:491:in `load_missing_constant'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:183:in `block in const_missing'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:181:in `each'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:181:in `const_missing'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/rake-0.9.2/lib/rake/ext/module.rb:36:in `const_missing'
from /Users/beatjunkie84/Desktop/ProjectX/app/admin/users.rb:1:in `<top (required)>'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:235:in `load'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:235:in `block in load'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:225:in `block in load_dependency'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:591:in `new_constants_in'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:225:in `load_dependency'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:235:in `load'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/activeadmin-0.3.2/lib/active_admin/application.rb:132:in `block in load!'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/activeadmin-0.3.2/lib/active_admin/application.rb:132:in `each'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/activeadmin-0.3.2/lib/active_admin/application.rb:132:in `load!'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/activeadmin-0.3.2/lib/active_admin/application.rb:155:in `routes'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/activeadmin-0.3.2/lib/active_admin.rb:63:in `routes'
from /Users/beatjunkie84/Desktop/ProjectX/config/routes.rb:4:in `block in <top (required)>'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/actionpack-3.0.1/lib/action_dispatch/routing/route_set.rb:233:in `instance_exec'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/actionpack-3.0.1/lib/action_dispatch/routing/route_set.rb:233:in `draw'
from /Users/beatjunkie84/Desktop/ProjectX/config/routes.rb:1:in `<top (required)>'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:235:in `load'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:235:in `block in load'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:225:in `block in load_dependency'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:591:in `new_constants_in'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:225:in `load_dependency'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:235:in `load'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/railties-3.0.1/lib/rails/application.rb:127:in `block in reload_routes!'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/railties-3.0.1/lib/rails/application.rb:127:in `each'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/railties-3.0.1/lib/rails/application.rb:127:in `reload_routes!'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/railties-3.0.1/lib/rails/application.rb:120:in `block in routes_reloader'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/activesupport-3.0.1/lib/active_support/file_update_checker.rb:32:in `call'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/activesupport-3.0.1/lib/active_support/file_update_checker.rb:32:in `execute_if_updated'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/actionpack-3.0.1/lib/action_dispatch/railtie.rb:14:in `block (2 levels) in <class:Railtie>'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/activesupport-3.0.1/lib/active_support/callbacks.rb:419:in `_run_prepare_callbacks'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/actionpack-3.0.1/lib/action_dispatch/middleware/callbacks.rb:40:in `initialize'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/actionpack-3.0.1/lib/action_dispatch/middleware/stack.rb:33:in `new'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/actionpack-3.0.1/lib/action_dispatch/middleware/stack.rb:33:in `build'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/actionpack-3.0.1/lib/action_dispatch/middleware/stack.rb:79:in `block in build'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/actionpack-3.0.1/lib/action_dispatch/middleware/stack.rb:79:in `each'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/actionpack-3.0.1/lib/action_dispatch/middleware/stack.rb:79:in `inject'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/actionpack-3.0.1/lib/action_dispatch/middleware/stack.rb:79:in `build'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/railties-3.0.1/lib/rails/application.rb:162:in `app'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/railties-3.0.1/lib/rails/application/finisher.rb:35:in `block in <module:Finisher>'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/railties-3.0.1/lib/rails/initializable.rb:25:in `instance_exec'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/railties-3.0.1/lib/rails/initializable.rb:25:in `run'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/railties-3.0.1/lib/rails/initializable.rb:50:in `block in run_initializers'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/railties-3.0.1/lib/rails/initializable.rb:49:in `each'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/railties-3.0.1/lib/rails/initializable.rb:49:in `run_initializers'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/railties-3.0.1/lib/rails/application.rb:134:in `initialize!'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/railties-3.0.1/lib/rails/application.rb:77:in `method_missing'
from /Users/beatjunkie84/Desktop/ProjectX/config/environment.rb:5:in `<top (required)>'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:239:in `require'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:239:in `block in require'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:225:in `block in load_dependency'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:591:in `new_constants_in'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:225:in `load_dependency'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:239:in `require'
from /Users/beatjunkie84/Desktop/ProjectX/config.ru:3:in `block in <main>'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/rack-1.2.4/lib/rack/builder.rb:46:in `instance_eval'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/rack-1.2.4/lib/rack/builder.rb:46:in `initialize'
from /Users/beatjunkie84/Desktop/ProjectX/config.ru:1:in `new'
from /Users/beatjunkie84/Desktop/ProjectX/config.ru:1:in `<main>'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/rack-1.2.4/lib/rack/builder.rb:35:in `eval'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/rack-1.2.4/lib/rack/builder.rb:35:in `parse_file'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/rack-1.2.4/lib/rack/server.rb:162:in `app'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/rack-1.2.4/lib/rack/server.rb:253:in `wrapped_app'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/rack-1.2.4/lib/rack/server.rb:204:in `start'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/railties-3.0.1/lib/rails/commands/server.rb:65:in `start'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/railties-3.0.1/lib/rails/commands.rb:30:in `block in <top (required)>'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/railties-3.0.1/lib/rails/commands.rb:27:in `tap'
from /Users/beatjunkie84/Desktop/ProjectX/bundler/ruby/1.9.1/gems/railties-3.0.1/lib/rails/commands.rb:27:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
I think i've fixed this issue at least 4 times without actually knowing what is causing it or what i did to fix it...what is causing this?
Here is what I do to fix this issue:
1) Checkout the oldest commit I have in my current branch (called 'paperclip').
2) Do bundle install (which installs all gems into bundler/ for some reason)
3) Git add . and/or git stash to get rid of the changes I just made to the unnamed branch after checking out
4) Checkout the initial branch again ('paperclip') and run rails server.
5) It works.
I have no idea what is causing this or what fixes it because seemingly i'm not doing anything for either case. Please help!
Not sure why but this worked:
cd [path to your gems folder]/gems/bcrypt-ruby-3.0.1/ext/mri
ruby extconf.rb
make
sudo make install
found here: no such file to load -- bcrypt_ext (via devise)
looks like 'bcrypt_ext' gem is not installed on your server!
Make sure to run bundle install after updating the source code, e.g. switching branches, or pulling new code revisions..