Why are Rails tests not working properly? - ruby-on-rails

Attempting to do the Rails tutorial on railstutorial.org. I'm currently at the testing portion of the tutorial and I keep on getting an error when performing the test. The test file I created with 'generate StaticPages controller' command is as is, I have not modified it at all. When I enter in the command 'rails test' I get this error:
>/Users/user/.rvm/gems/ruby-2.3.0/gems/actionpack-5.0.0.1/lib/abstract_controller/helpers.rb:152:in `rescue in block in modules_for_helpers': Missing helper file helpers//users/user/programming/odin/rails/sample_app/app/helpers/application_helper.rb_helper.rb (AbstractController::Helpers::MissingHelperError)
Here is the trace back:
> from /Users/user/.rvm/gems/ruby-2.3.0/gems/actionpack-5.0.0.1/lib/abstract_controller/helpers.rb:149:in `block in modules_for_helpers'
from /Users/user/.rvm/gems/ruby-2.3.0/gems/actionpack-5.0.0.1/lib/abstract_controller/helpers.rb:145:in `map!'
from /Users/user/.rvm/gems/ruby-2.3.0/gems/actionpack-5.0.0.1/lib/abstract_controller/helpers.rb:145:in `modules_for_helpers'
from /Users/user/.rvm/gems/ruby-2.3.0/gems/actionpack-5.0.0.1/lib/action_controller/metal/helpers.rb:93:in `modules_for_helpers'
from /Users/user/.rvm/gems/ruby-2.3.0/gems/actionpack-5.0.0.1/lib/abstract_controller/helpers.rb:109:in `helper'
from /Users/user/.rvm/gems/ruby-2.3.0/gems/actionpack-5.0.0.1/lib/action_controller/railties/helpers.rb:17:in `inherited'
from /Users/user/.rvm/gems/ruby-2.3.0/gems/actionview-5.0.0.1/lib/action_view/test_case.rb:11:in `<class:TestCase>'
from /Users/user/.rvm/gems/ruby-2.3.0/gems/actionview-5.0.0.1/lib/action_view/test_case.rb:10:in `<module:ActionView>'
from /Users/user/.rvm/gems/ruby-2.3.0/gems/actionview-5.0.0.1/lib/action_view/test_case.rb:8:in `<top (required)>'
from /Users/user/.rvm/gems/ruby-2.3.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:293:in `require'
from /Users/user/.rvm/gems/ruby-2.3.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:293:in `block in require'
from /Users/user/.rvm/gems/ruby-2.3.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:259:in `load_dependency'
from /Users/user/.rvm/gems/ruby-2.3.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:293:in `require'
from /Users/user/.rvm/gems/ruby-2.3.0/gems/rails-controller-testing-0.1.1/lib/rails-controller-testing.rb:16:in `block in <top (required)>'
from /Users/user/.rvm/gems/ruby-2.3.0/gems/activesupport-5.0.0.1/lib/active_support/lazy_load_hooks.rb:38:in `instance_eval'
from /Users/user/.rvm/gems/ruby-2.3.0/gems/activesupport-5.0.0.1/lib/active_support/lazy_load_hooks.rb:38:in `execute_hook'
from /Users/user/.rvm/gems/ruby-2.3.0/gems/activesupport-5.0.0.1/lib/active_support/lazy_load_hooks.rb:45:in `block in run_load_hooks'
from /Users/user/.rvm/gems/ruby-2.3.0/gems/activesupport-5.0.0.1/lib/active_support/lazy_load_hooks.rb:44:in `each'
from /Users/user/.rvm/gems/ruby-2.3.0/gems/activesupport-5.0.0.1/lib/active_support/lazy_load_hooks.rb:44:in `run_load_hooks'
from /Users/user/.rvm/gems/ruby-2.3.0/gems/actionview-5.0.0.1/lib/action_view/base.rb:215:in `<class:Base>'
from /Users/user/.rvm/gems/ruby-2.3.0/gems/actionview-5.0.0.1/lib/action_view/base.rb:139:in `<module:ActionView>'
from /Users/user/.rvm/gems/ruby-2.3.0/gems/actionview-5.0.0.1/lib/action_view/base.rb:10:in `<top (required)>'
from /Users/user/.rvm/gems/ruby-2.3.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:293:in `require'
from /Users/user/.rvm/gems/ruby-2.3.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:293:in `block in require'
from /Users/user/.rvm/gems/ruby-2.3.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:259:in `load_dependency'
from /Users/user/.rvm/gems/ruby-2.3.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:293:in `require'
from /Users/user/.rvm/gems/ruby-2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/debug_exceptions.rb:5:in `<top (required)>'
from /Users/user/.rvm/gems/ruby-2.3.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:293:in `require'
from /Users/user/.rvm/gems/ruby-2.3.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:293:in `block in require'
from /Users/user/.rvm/gems/ruby-2.3.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:259:in `load_dependency'
from /Users/user/.rvm/gems/ruby-2.3.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:293:in `require'
from /Users/user/.rvm/gems/ruby-2.3.0/gems/railties-5.0.0.1/lib/rails/application/default_middleware_stack.rb:48:in `block in build_stack'
from /Users/user/.rvm/gems/ruby-2.3.0/gems/railties-5.0.0.1/lib/rails/application/default_middleware_stack.rb:13:in `tap'
from /Users/user/.rvm/gems/ruby-2.3.0/gems/railties-5.0.0.1/lib/rails/application/default_middleware_stack.rb:13:in `build_stack'
from /Users/user/.rvm/gems/ruby-2.3.0/gems/railties-5.0.0.1/lib/rails/application.rb:504:in `default_middleware_stack'
from /Users/user/.rvm/gems/ruby-2.3.0/gems/railties-5.0.0.1/lib/rails/engine.rb:506:in `block in app'
from /Users/user/.rvm/gems/ruby-2.3.0/gems/railties-5.0.0.1/lib/rails/engine.rb:504:in `synchronize'
from /Users/user/.rvm/gems/ruby-2.3.0/gems/railties-5.0.0.1/lib/rails/engine.rb:504:in `app'
from /Users/user/.rvm/gems/ruby-2.3.0/gems/railties-5.0.0.1/lib/rails/application/finisher.rb:37:in `block in <module:Finisher>'
from /Users/user/.rvm/gems/ruby-2.3.0/gems/railties-5.0.0.1/lib/rails/initializable.rb:30:in `instance_exec'
from /Users/user/.rvm/gems/ruby-2.3.0/gems/railties-5.0.0.1/lib/rails/initializable.rb:30:in `run'
from /Users/user/.rvm/gems/ruby-2.3.0/gems/railties-5.0.0.1/lib/rails/initializable.rb:55:in `block in run_initializers'
from /Users/user/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/tsort.rb:228:in `block in tsort_each'
from /Users/user/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
from /Users/user/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/tsort.rb:431:in `each_strongly_connected_component_from'
from /Users/user/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/tsort.rb:349:in `block in each_strongly_connected_component'
from /Users/user/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/tsort.rb:347:in `each'
from /Users/user/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/tsort.rb:347:in `call'
from /Users/user/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/tsort.rb:347:in `each_strongly_connected_component'
from /Users/user/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/tsort.rb:226:in `tsort_each'
from /Users/user/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/tsort.rb:205:in `tsort_each'
from /Users/user/.rvm/gems/ruby-2.3.0/gems/railties-5.0.0.1/lib/rails/initializable.rb:54:in `run_initializers'
from /Users/user/.rvm/gems/ruby-2.3.0/gems/railties-5.0.0.1/lib/rails/application.rb:352:in `initialize!'
from /Users/user/Programming/Odin/rails/sample_app/config/environment.rb:5:in `<top (required)>'
from /Users/user/.rvm/gems/ruby-2.3.0/gems/spring-1.7.2/lib/spring/application.rb:92:in `require'
from /Users/user/.rvm/gems/ruby-2.3.0/gems/spring-1.7.2/lib/spring/application.rb:92:in `preload'
from /Users/user/.rvm/gems/ruby-2.3.0/gems/spring-1.7.2/lib/spring/application.rb:143:in `serve'
from /Users/user/.rvm/gems/ruby-2.3.0/gems/spring-1.7.2/lib/spring/application.rb:131:in `block in run'
from /Users/user/.rvm/gems/ruby-2.3.0/gems/spring-1.7.2/lib/spring/application.rb:125:in `loop'
from /Users/user/.rvm/gems/ruby-2.3.0/gems/spring-1.7.2/lib/spring/application.rb:125:in `run'
from /Users/user/.rvm/gems/ruby-2.3.0/gems/spring-1.7.2/lib/spring/application/boot.rb:19:in `<top (required)>'
from /Users/user/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/user/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from -e:1:in `<main>'
If this is formatted and asked imporperly or what not I apologize, any help will be greatly appreciated I absolutely stumped.
Here is the github repo : https://github.com/JDjedi/sample_app
Rails version is 5.0 and ruby version is 2.3.0p0

application_helper.rb_helper.rb - is this how you called your helper? .rb is an extension. Thus could you change the name of the helper file to application_helper.rb and see if that works?
Edit:
Did you look at this question? Rails: AbstractController::Helpers::MissingHelperError - Missing helper file application_helper.rb_helper.rb
Here seems to be a working answer: https://stackoverflow.com/a/28269245/1010826
Simply rename the root folder to the same name. Not sure why that would work, though :)

Related

Rails Console not starting up

I am trying to run rails console rails c in ConEmu and Cmder but get the following error....
C:/Ruby21-x64/lib/ruby/2.1.0/open-uri.rb:30:in `initialize': No such
file or directory # rb_sysopen - C:/Users/user.name/Documents/parentDir/app_dir/log/app_dev.log (Errno::ENOENT)
from C:/Ruby21-x64/lib/ruby/2.1.0/open-uri.rb:30:in `open'
from C:/Ruby21-x64/lib/ruby/2.1.0/open-uri.rb:30:in `open'
from C:/Ruby21-x64/lib/ruby/2.1.0/open-uri.rb:30:in `open'
from C:/Ruby21-x64/lib/ruby/2.1.0/logger.rb:600:in `create_l
ogfile'
from C:/Ruby21-x64/lib/ruby/2.1.0/logger.rb:594:in `rescue i
n open_logfile'
from C:/Ruby21-x64/lib/ruby/2.1.0/logger.rb:591:in `open_log
file'
from C:/Ruby21-x64/lib/ruby/2.1.0/logger.rb:549:in `initiali
ze'
from C:/Ruby21-x64/lib/ruby/2.1.0/logger.rb:318:in `new'
from C:/Ruby21-x64/lib/ruby/2.1.0/logger.rb:318:in `initiali
ze'
from C:/Users/user.name/Documents/parentDir/app_dir/config/environments/development.rb:57:in `new'
from C:/Users/user.name/Documents/parentDir/app_dir/config/environments/development.rb:57:in `block in <top (require
d)>'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/railties-4.1.9/l
ib/rails/railtie.rb:210:in `instance_eval'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/railties-4.1.9/l
ib/rails/railtie.rb:210:in `configure'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/railties-4.1.9/l
ib/rails/railtie.rb:182:in `configure'
from C:/Users/user.name/Documents/parentDir/app_dir/config/environments/development.rb:11:in `<top (required)>'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/activesupport-4.
1.9/lib/active_support/dependencies.rb:247:in `require'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/activesupport-4.
1.9/lib/active_support/dependencies.rb:247:in `block in require'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/activesupport-4.
1.9/lib/active_support/dependencies.rb:232:in `load_dependency'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/activesupport-4.
1.9/lib/active_support/dependencies.rb:247:in `require'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/railties-4.1.9/l
ib/rails/engine.rb:594:in `block (2 levels) in <class:Engine>'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/railties-4.1.9/l
ib/rails/engine.rb:593:in `each'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/railties-4.1.9/l
ib/rails/engine.rb:593:in `block in <class:Engine>'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/railties-4.1.9/l
ib/rails/initializable.rb:30:in `instance_exec'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/railties-4.1.9/l
ib/rails/initializable.rb:30:in `run'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/railties-4.1.9/l
ib/rails/initializable.rb:55:in `block in run_initializers'
from C:/Ruby21-x64/lib/ruby/2.1.0/tsort.rb:226:in `block in
tsort_each'
from C:/Ruby21-x64/lib/ruby/2.1.0/tsort.rb:348:in `block (2
levels) in each_strongly_connected_component'
from C:/Ruby21-x64/lib/ruby/2.1.0/tsort.rb:418:in `block (2
levels) in each_strongly_connected_component_from'
from C:/Ruby21-x64/lib/ruby/2.1.0/tsort.rb:427:in `each_stro
ngly_connected_component_from'
from C:/Ruby21-x64/lib/ruby/2.1.0/tsort.rb:417:in `block in
each_strongly_connected_component_from'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/railties-4.1.9/l
ib/rails/initializable.rb:44:in `each'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/railties-4.1.9/l
ib/rails/initializable.rb:44:in `tsort_each_child'
from C:/Ruby21-x64/lib/ruby/2.1.0/tsort.rb:411:in `call'
from C:/Ruby21-x64/lib/ruby/2.1.0/tsort.rb:411:in `each_stro
ngly_connected_component_from'
from C:/Ruby21-x64/lib/ruby/2.1.0/tsort.rb:347:in `block in
each_strongly_connected_component'
from C:/Ruby21-x64/lib/ruby/2.1.0/tsort.rb:345:in `each'
from C:/Ruby21-x64/lib/ruby/2.1.0/tsort.rb:345:in `call'
from C:/Ruby21-x64/lib/ruby/2.1.0/tsort.rb:345:in `each_stro
ngly_connected_component'
from C:/Ruby21-x64/lib/ruby/2.1.0/tsort.rb:224:in `tsort_eac
h'
from C:/Ruby21-x64/lib/ruby/2.1.0/tsort.rb:205:in `tsort_eac
h'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/railties-4.1.9/l
ib/rails/initializable.rb:54:in `run_initializers'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/railties-4.1.9/l
ib/rails/application.rb:300:in `initialize!'
from C:/Users/user.name/Documents/parentDir/app_dir/config/environment.rb:5:in `<top (required)>'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/activesupport-4.
1.9/lib/active_support/dependencies.rb:247:in `require'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/activesupport-4.
1.9/lib/active_support/dependencies.rb:247:in `block in require'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/activesupport-4.
1.9/lib/active_support/dependencies.rb:232:in `load_dependency'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/activesupport-4.
1.9/lib/active_support/dependencies.rb:247:in `require'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/railties-4.1.9/l
ib/rails/application.rb:276:in `require_environment!'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/railties-4.1.9/l
ib/rails/commands/commands_tasks.rb:147:in `require_application_and_
environment!'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/railties-4.1.9/l
ib/rails/commands/commands_tasks.rb:68:in `console'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/railties-4.1.9/l
ib/rails/commands/commands_tasks.rb:40:in `run_command!'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/railties-4.1.9/l
ib/rails/commands.rb:17:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'
I can run rails console in the terminal on RubyMine but that is the most useless terminal ever to exist. Any idea what might be causing this?
It says that log/app_dev.log file is missing - try to create it in the app directory and see what happens.

Devise crashes my rails app on heroku, "undefined local variable or method `mimes_for_respond_to'"

Since adding the devise gem, heroku is unable to load my application in production, giving me the application error:
An error occurred in the application and your page could not be served. Please try again in a few moments.
If you are the application owner, check your logs for details.
The specific error log from the console is
/app/vendor/bundle/ruby/2.1.0/gems/devise-3.3.0/app/controllers/devise_controller.rb:13:in `<class:DeviseController>': undefined local variable or method `mimes_for_respond_to' for DeviseController:Class (NameError)
from /app/vendor/bundle/ruby/2.1.0/gems/devise-3.3.0/app/controllers/devise_controller.rb:2:in `<top (required)>'
from /app/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.0.rc3/lib/active_support/dependencies.rb:274:in `require'
from /app/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.0.rc3/lib/active_support/dependencies.rb:274:in `block in require'
from /app/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.0.rc3/lib/active_support/dependencies.rb:240:in `load_dependency'
from /app/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.0.rc3/lib/active_support/dependencies.rb:274:in `require'
from /app/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.0.rc3/lib/active_support/dependencies.rb:360:in `require_or_load'
from /app/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.0.rc3/lib/active_support/dependencies.rb:494:in `load_missing_constant'
from /app/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.0.rc3/lib/active_support/dependencies.rb:184:in `const_missing'
from /app/vendor/bundle/ruby/2.1.0/gems/devise-3.3.0/app/controllers/devise/confirmations_controller.rb:1:in `<top (required)>'
from /app/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.0.rc3/lib/active_support/dependencies.rb:274:in `require'
from /app/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.0.rc3/lib/active_support/dependencies.rb:274:in `block in require'
from /app/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.0.rc3/lib/active_support/dependencies.rb:240:in `load_dependency'
from /app/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.0.rc3/lib/active_support/dependencies.rb:274:in `require'
from /app/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.0.rc3/lib/active_support/dependencies.rb:360:in `require_or_load'
from /app/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.0.rc3/lib/active_support/dependencies.rb:317:in `depend_on'
from /app/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.0.rc3/lib/active_support/dependencies.rb:233:in `require_dependency'
from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.2.0.rc3/lib/rails/engine.rb:472:in `block (2 levels) in eager_load!'
from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.2.0.rc3/lib/rails/engine.rb:471:in `each'
from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.2.0.rc3/lib/rails/engine.rb:471:in `block in eager_load!'
from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.2.0.rc3/lib/rails/engine.rb:469:in `each'
from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.2.0.rc3/lib/rails/engine.rb:469:in `eager_load!'
from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.2.0.rc3/lib/rails/engine.rb:346:in `eager_load!'
from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.2.0.rc3/lib/rails/application/finisher.rb:56:in `each'
from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.2.0.rc3/lib/rails/application/finisher.rb:56:in `block in <module:Finisher>'
from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.2.0.rc3/lib/rails/initializable.rb:30:in `instance_exec'
from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.2.0.rc3/lib/rails/initializable.rb:30:in `run'
from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.2.0.rc3/lib/rails/initializable.rb:55:in `block in run_initializers'
from /app/vendor/ruby-2.1.5/lib/ruby/2.1.0/tsort.rb:226:in `block in tsort_each'
from /app/vendor/ruby-2.1.5/lib/ruby/2.1.0/tsort.rb:348:in `block (2 levels) in each_strongly_connected_component'
from /app/vendor/ruby-2.1.5/lib/ruby/2.1.0/tsort.rb:427:in `each_strongly_connected_component_from'
from /app/vendor/ruby-2.1.5/lib/ruby/2.1.0/tsort.rb:347:in `block in each_strongly_connected_component'
from /app/vendor/ruby-2.1.5/lib/ruby/2.1.0/tsort.rb:345:in `each'
from /app/vendor/ruby-2.1.5/lib/ruby/2.1.0/tsort.rb:345:in `call'
from /app/vendor/ruby-2.1.5/lib/ruby/2.1.0/tsort.rb:345:in `each_strongly_connected_component'
from /app/vendor/ruby-2.1.5/lib/ruby/2.1.0/tsort.rb:224:in `tsort_each'
from /app/vendor/ruby-2.1.5/lib/ruby/2.1.0/tsort.rb:205:in `tsort_each'
from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.2.0.rc3/lib/rails/initializable.rb:54:in `run_initializers'
from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.2.0.rc3/lib/rails/application.rb:352:in `initialize!'
from /app/config/environment.rb:5:in `<top (required)>'
from /app/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.0.rc3/lib/active_support/dependencies.rb:274:in `require'
from /app/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.0.rc3/lib/active_support/dependencies.rb:274:in `block in require'
from /app/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.0.rc3/lib/active_support/dependencies.rb:240:in `load_dependency'
from /app/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.0.rc3/lib/active_support/dependencies.rb:274:in `require'
from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.2.0.rc3/lib/rails/application.rb:328:in `require_environment!'
from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.2.0.rc3/lib/rails/commands/commands_tasks.rb:142:in `require_application_and_environment!'
from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.2.0.rc3/lib/rails/commands/commands_tasks.rb:67:in `console'
from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.2.0.rc3/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.2.0.rc3/lib/rails/commands.rb:17:in `<top (required)>'
from /app/bin/rails:8:in `require'
from /app/bin/rails:8:in `<main>'
I have tried multiple suggestions floating around the internet, but none have worked so far. Thanks in advance!
A fast google search relates your issue with the responders gem, that needs to be updated. Please look at this issue in Devise gem. As long as responders is a Devise dependency, you don't need to include it in the Gemfile (double check that in your Gemfile.lock), you just need to update to the last version with:
bundle update responders
In the case that responders gem is not available, then add gem 'responders' to your Gemfile before running the previous command.
Hope it helps.

Can't generate anything using rails-api gem

I'm trying to set up a rails json api using the rails-api gem but I'm having a little trouble getting it to work like it should.
I'm following this tutorial since I'll be creating this for an ember.js frontend.
http://blog.jasonkriss.com/building-an-app-with-ember-app-kit-part-1/
And bundling (after fixing the [ issue on line 3) works.
When I attempt to generate the model that he generates after bundling I just get something that looks like this in the terminal...
/Users/jordanriser/workspace/Test/config/environments/development.rb:1:in `<top (required)>': undefined method `configure' for #<Test::Application:0x007f9bcb9b0640> (NoMethodError)
from /Users/jordanriser/.rvm/gems/ruby-2.1.1/gems/activesupport-4.0.4/lib/active_support/dependencies.rb:229:in `require'
from /Users/jordanriser/.rvm/gems/ruby-2.1.1/gems/activesupport-4.0.4/lib/active_support/dependencies.rb:229:in `block in require'
from /Users/jordanriser/.rvm/gems/ruby-2.1.1/gems/activesupport-4.0.4/lib/active_support/dependencies.rb:214:in `load_dependency'
from /Users/jordanriser/.rvm/gems/ruby-2.1.1/gems/activesupport-4.0.4/lib/active_support/dependencies.rb:229:in `require'
from /Users/jordanriser/.rvm/gems/ruby-2.1.1/gems/railties-4.0.4/lib/rails/engine.rb:591:in `block (2 levels) in <class:Engine>'
from /Users/jordanriser/.rvm/gems/ruby-2.1.1/gems/railties-4.0.4/lib/rails/engine.rb:590:in `each'
from /Users/jordanriser/.rvm/gems/ruby-2.1.1/gems/railties-4.0.4/lib/rails/engine.rb:590:in `block in <class:Engine>'
from /Users/jordanriser/.rvm/gems/ruby-2.1.1/gems/railties-4.0.4/lib/rails/initializable.rb:30:in `instance_exec'
from /Users/jordanriser/.rvm/gems/ruby-2.1.1/gems/railties-4.0.4/lib/rails/initializable.rb:30:in `run'
from /Users/jordanriser/.rvm/gems/ruby-2.1.1/gems/railties-4.0.4/lib/rails/initializable.rb:55:in `block in run_initializers'
from /Users/jordanriser/.rbenv/versions/2.1.1/lib/ruby/2.1.0/tsort.rb:226:in `block in tsort_each'
from /Users/jordanriser/.rbenv/versions/2.1.1/lib/ruby/2.1.0/tsort.rb:348:in `block (2 levels) in each_strongly_connected_component'
from /Users/jordanriser/.rbenv/versions/2.1.1/lib/ruby/2.1.0/tsort.rb:418:in `block (2 levels) in each_strongly_connected_component_from'
from /Users/jordanriser/.rbenv/versions/2.1.1/lib/ruby/2.1.0/tsort.rb:427:in `each_strongly_connected_component_from'
from /Users/jordanriser/.rbenv/versions/2.1.1/lib/ruby/2.1.0/tsort.rb:417:in `block in each_strongly_connected_component_from'
from /Users/jordanriser/.rvm/gems/ruby-2.1.1/gems/railties-4.0.4/lib/rails/initializable.rb:44:in `each'
from /Users/jordanriser/.rvm/gems/ruby-2.1.1/gems/railties-4.0.4/lib/rails/initializable.rb:44:in `tsort_each_child'
from /Users/jordanriser/.rbenv/versions/2.1.1/lib/ruby/2.1.0/tsort.rb:411:in `call'
from /Users/jordanriser/.rbenv/versions/2.1.1/lib/ruby/2.1.0/tsort.rb:411:in `each_strongly_connected_component_from'
from /Users/jordanriser/.rbenv/versions/2.1.1/lib/ruby/2.1.0/tsort.rb:347:in `block in each_strongly_connected_component'
from /Users/jordanriser/.rbenv/versions/2.1.1/lib/ruby/2.1.0/tsort.rb:345:in `each'
from /Users/jordanriser/.rbenv/versions/2.1.1/lib/ruby/2.1.0/tsort.rb:345:in `call'
from /Users/jordanriser/.rbenv/versions/2.1.1/lib/ruby/2.1.0/tsort.rb:345:in `each_strongly_connected_component'
from /Users/jordanriser/.rbenv/versions/2.1.1/lib/ruby/2.1.0/tsort.rb:224:in `tsort_each'
from /Users/jordanriser/.rbenv/versions/2.1.1/lib/ruby/2.1.0/tsort.rb:205:in `tsort_each'
from /Users/jordanriser/.rvm/gems/ruby-2.1.1/gems/railties-4.0.4/lib/rails/initializable.rb:54:in `run_initializers'
from /Users/jordanriser/.rvm/gems/ruby-2.1.1/gems/railties-4.0.4/lib/rails/application.rb:215:in `initialize!'
from /Users/jordanriser/workspace/Test/config/environment.rb:5:in `<top (required)>'
from /Users/jordanriser/.rvm/gems/ruby-2.1.1/gems/activesupport-4.0.4/lib/active_support/dependencies.rb:229:in `require'
from /Users/jordanriser/.rvm/gems/ruby-2.1.1/gems/activesupport-4.0.4/lib/active_support/dependencies.rb:229:in `block in require'
from /Users/jordanriser/.rvm/gems/ruby-2.1.1/gems/activesupport-4.0.4/lib/active_support/dependencies.rb:214:in `load_dependency'
from /Users/jordanriser/.rvm/gems/ruby-2.1.1/gems/activesupport-4.0.4/lib/active_support/dependencies.rb:229:in `require'
from /Users/jordanriser/.rvm/gems/ruby-2.1.1/gems/railties-4.0.4/lib/rails/application.rb:189:in `require_environment!'
from /Users/jordanriser/.rvm/gems/ruby-2.1.1/gems/railties-4.0.4/lib/rails/commands.rb:44:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'
I've googled that "undefined method 'configure'" But I can't seem to find any definitive answers on what that is.

Rails server stops working after (what I believe) is switching branches

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..

Rspec Test Error

Ruby 1.9.2, RoR 3.0.1. When I run 'rspec spec' I get this error. Can't really make sense of it.
connor#connor-desktop:~/rubystore$ rspec spec
/usr/local/lib/ruby/gems/1.9.1/gems/rspec-core-2.0.1/lib/rspec/core/backward_compatibility.rb:20:in `const_missing': uninitialized constant Admins (NameError)
from /usr/local/lib/ruby/gems/1.9.1/gems/rspec-expectations-2.0.1/lib/rspec/expectations/backward_compatibility.rb:6:in `const_missing'
from /usr/local/lib/ruby/gems/1.9.1/gems/devise-1.1.3/app/controllers/devise/admins_controller.rb:1:in `<top (required)>'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.1/lib/rails/engine.rb:138:in `block (2 levels) in eager_load!'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.1/lib/rails/engine.rb:137:in `each'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.1/lib/rails/engine.rb:137:in `block in eager_load!'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.1/lib/rails/engine.rb:135:in `each'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.1/lib/rails/engine.rb:135:in `eager_load!'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.1/lib/rails/application/railties.rb:11:in `each'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.1/lib/rails/application/railties.rb:11:in `all'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.1/lib/rails/application.rb:107:in `eager_load!'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.1/lib/rails/application/finisher.rb:41:in `block in <module:Finisher>'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.1/lib/rails/initializable.rb:25:in `instance_exec'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.1/lib/rails/initializable.rb:25:in `run'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.1/lib/rails/initializable.rb:50:in `block in run_initializers'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.1/lib/rails/initializable.rb:49:in `each'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.1/lib/rails/initializable.rb:49:in `run_initializers'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.1/lib/rails/application.rb:134:in `initialize!'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.1/lib/rails/application.rb:77:in `method_missing'
from /home/connor/rubystore/config/environment.rb:5:in `<top (required)>'
from <internal:lib/rubygems/custom_require>:29:in `require'
from <internal:lib/rubygems/custom_require>:29:in `require'
from /home/connor/rubystore/spec/spec_helper.rb:3:in `<top (required)>'
from <internal:lib/rubygems/custom_require>:29:in `require'
from <internal:lib/rubygems/custom_require>:29:in `require'
from /home/connor/rubystore/spec/controllers/products_controller_spec.rb:1:in `<top (required)>'
from /usr/local/lib/ruby/gems/1.9.1/gems/rspec-core-2.0.1/lib/rspec/core/configuration.rb:306:in `load'
from /usr/local/lib/ruby/gems/1.9.1/gems/rspec-core-2.0.1/lib/rspec/core/configuration.rb:306:in `block in load_spec_files'
from /usr/local/lib/ruby/gems/1.9.1/gems/rspec-core-2.0.1/lib/rspec/core/configuration.rb:306:in `map'
from /usr/local/lib/ruby/gems/1.9.1/gems/rspec-core-2.0.1/lib/rspec/core/configuration.rb:306:in `load_spec_files'
from /usr/local/lib/ruby/gems/1.9.1/gems/rspec-core-2.0.1/lib/rspec/core/command_line.rb:18:in `run'
from /usr/local/lib/ruby/gems/1.9.1/gems/rspec-core-2.0.1/lib/rspec/core/runner.rb:55:in `run_in_process'
from /usr/local/lib/ruby/gems/1.9.1/gems/rspec-core-2.0.1/lib/rspec/core/runner.rb:46:in `run'
from /usr/local/lib/ruby/gems/1.9.1/gems/rspec-core-2.0.1/lib/rspec/core/runner.rb:10:in `block in autorun'
Anybody have an idea of what may be going on?
from /home/connor/rubystore/config/environment.rb:5:in `<top (required)>'
from /home/connor/rubystore/spec/spec_helper.rb:3:in `<top (required)>'
from /home/connor/rubystore/spec/controllers/products_controller_spec.rb:1:in `<top (required)>'
Check these lines for errors. Or maybe something is to be included in your spec_helper.rb file

Resources