Rails 4 error when runnning the rails server command on console - ruby-on-rails

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'

Related

Can't Start Rails Server, ActiveAdmin Probably Has Issues

I installed ActiveAdmin to manage the Admin end of my Rails app and everything was absolutely fine till I generated a model for ActiveAdmin. Now the rails server fails to start, even Rake Rollback or rails d active_admin:resource MyModel doesn't work. I am clueless now, might be a simple stupid error but still I can't figure it out, BTW here's the error dump.
/home/ubuntu/workspace/app/admin/products.rb:1:in `<top (required)>': uninitialized constant Products (NameError)
from /usr/local/rvm/gems/ruby-2.3.0/bundler/gems/activeadmin-f8926831429f/lib/active_admin/application.rb:216:in `block in load'
from /usr/local/rvm/gems/ruby-2.3.0/bundler/gems/activeadmin-f8926831429f/lib/active_admin/error.rb:41:in `capture'
from /usr/local/rvm/gems/ruby-2.3.0/bundler/gems/activeadmin-f8926831429f/lib/active_admin/application.rb:216:in `load'
from /usr/local/rvm/gems/ruby-2.3.0/bundler/gems/activeadmin-f8926831429f/lib/active_admin/application.rb:208:in `block in load!'
from /usr/local/rvm/gems/ruby-2.3.0/bundler/gems/activeadmin-f8926831429f/lib/active_admin/application.rb:208:in `each'
from /usr/local/rvm/gems/ruby-2.3.0/bundler/gems/activeadmin-f8926831429f/lib/active_admin/application.rb:208:in `load!'
from /usr/local/rvm/gems/ruby-2.3.0/bundler/gems/activeadmin-f8926831429f/lib/active_admin/application.rb:230:in `routes'
from /usr/local/rvm/gems/ruby-2.3.0/bundler/gems/activeadmin-f8926831429f/lib/active_admin.rb:79:in `routes'
from /home/ubuntu/workspace/config/routes.rb:4:in `block in <top (required)>'
from /usr/local/rvm/gems/ruby-2.3.0/gems/actionpack-4.2.5/lib/action_dispatch/routing/route_set.rb:434:in `instance_exec'
from /usr/local/rvm/gems/ruby-2.3.0/gems/actionpack-4.2.5/lib/action_dispatch/routing/route_set.rb:434:in `eval_block'
from /usr/local/rvm/gems/ruby-2.3.0/gems/actionpack-4.2.5/lib/action_dispatch/routing/route_set.rb:412:in `draw'
from /home/ubuntu/workspace/config/routes.rb:1:in `<top (required)>'
from /usr/local/rvm/gems/ruby-2.3.0/gems/railties-4.2.5/lib/rails/application/routes_reloader.rb:40:in `block in load_paths'
from /usr/local/rvm/gems/ruby-2.3.0/gems/railties-4.2.5/lib/rails/application/routes_reloader.rb:40:in `each'
from /usr/local/rvm/gems/ruby-2.3.0/gems/railties-4.2.5/lib/rails/application/routes_reloader.rb:40:in `load_paths'
from /usr/local/rvm/gems/ruby-2.3.0/gems/railties-4.2.5/lib/rails/application/routes_reloader.rb:16:in `reload!'
from /usr/local/rvm/gems/ruby-2.3.0/gems/railties-4.2.5/lib/rails/application/routes_reloader.rb:26:in `block in updater'
from /usr/local/rvm/gems/ruby-2.3.0/gems/activesupport-4.2.5/lib/active_support/file_update_checker.rb:75:in `execute'
from /usr/local/rvm/gems/ruby-2.3.0/gems/railties-4.2.5/lib/rails/application/routes_reloader.rb:27:in `updater'
from /usr/local/rvm/gems/ruby-2.3.0/gems/railties-4.2.5/lib/rails/application/routes_reloader.rb:7:in `execute_if_updated'
from /usr/local/rvm/gems/ruby-2.3.0/gems/railties-4.2.5/lib/rails/application/finisher.rb:69:in `block in <module:Finisher>'
from /usr/local/rvm/gems/ruby-2.3.0/gems/railties-4.2.5/lib/rails/initializable.rb:30:in `instance_exec'
from /usr/local/rvm/gems/ruby-2.3.0/gems/railties-4.2.5/lib/rails/initializable.rb:30:in `run'
from /usr/local/rvm/gems/ruby-2.3.0/gems/railties-4.2.5/lib/rails/initializable.rb:55:in `block in run_initializers'
from /usr/local/rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/tsort.rb:228:in `block in tsort_each'
from /usr/local/rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
from /usr/local/rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/tsort.rb:431:in `each_strongly_connected_component_from'
from /usr/local/rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/tsort.rb:349:in `block in each_strongly_connected_component'
from /usr/local/rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/tsort.rb:347:in `each'
from /usr/local/rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/tsort.rb:347:in `call'
from /usr/local/rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/tsort.rb:347:in `each_strongly_connected_component'
from /usr/local/rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/tsort.rb:226:in `tsort_each'
from /usr/local/rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/tsort.rb:205:in `tsort_each'
from /usr/local/rvm/gems/ruby-2.3.0/gems/railties-4.2.5/lib/rails/initializable.rb:54:in `run_initializers'
from /usr/local/rvm/gems/ruby-2.3.0/gems/railties-4.2.5/lib/rails/application.rb:352:in `initialize!'
from /home/ubuntu/workspace/config/environment.rb:5:in `<top (required)>'
from /home/ubuntu/workspace/config.ru:3:in `block in <main>'
from /usr/local/rvm/gems/ruby-2.3.0/gems/rack-1.6.4/lib/rack/builder.rb:55:in `instance_eval'
from /usr/local/rvm/gems/ruby-2.3.0/gems/rack-1.6.4/lib/rack/builder.rb:55:in `initialize'
from /home/ubuntu/workspace/config.ru:in `new'
from /home/ubuntu/workspace/config.ru:in `<main>'
from /usr/local/rvm/gems/ruby-2.3.0/gems/rack-1.6.4/lib/rack/builder.rb:49:in `eval'
from /usr/local/rvm/gems/ruby-2.3.0/gems/rack-1.6.4/lib/rack/builder.rb:49:in `new_from_string'
from /usr/local/rvm/gems/ruby-2.3.0/gems/rack-1.6.4/lib/rack/builder.rb:40:in `parse_file'
from /usr/local/rvm/gems/ruby-2.3.0/gems/rack-1.6.4/lib/rack/server.rb:299:in `build_app_and_options_from_config'
from /usr/local/rvm/gems/ruby-2.3.0/gems/rack-1.6.4/lib/rack/server.rb:208:in `app'
from /usr/local/rvm/gems/ruby-2.3.0/gems/railties-4.2.5/lib/rails/commands/server.rb:61:in `app'
from /usr/local/rvm/gems/ruby-2.3.0/gems/rack-1.6.4/lib/rack/server.rb:336:in `wrapped_app'
from /usr/local/rvm/gems/ruby-2.3.0/gems/railties-4.2.5/lib/rails/commands/server.rb:139:in `log_to_stdout'
from /usr/local/rvm/gems/ruby-2.3.0/gems/railties-4.2.5/lib/rails/commands/server.rb:78:in `start'
from /usr/local/rvm/gems/ruby-2.3.0/gems/railties-4.2.5/lib/rails/commands/commands_tasks.rb:80:in `block in server'
from /usr/local/rvm/gems/ruby-2.3.0/gems/railties-4.2.5/lib/rails/commands/commands_tasks.rb:75:in `tap'
from /usr/local/rvm/gems/ruby-2.3.0/gems/railties-4.2.5/lib/rails/commands/commands_tasks.rb:75:in `server'
from /usr/local/rvm/gems/ruby-2.3.0/gems/railties-4.2.5/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
from /usr/local/rvm/gems/ruby-2.3.0/gems/railties-4.2.5/lib/rails/commands.rb:17:in `<top (required)>'
from /home/ubuntu/workspace/bin/rails:9:in `require'
from /home/ubuntu/workspace/bin/rails:9:in `<top (required)>'
from /usr/local/rvm/gems/ruby-2.3.0/gems/spring-1.7.2/lib/spring/client/rails.rb:28:in `load'
from /usr/local/rvm/gems/ruby-2.3.0/gems/spring-1.7.2/lib/spring/client/rails.rb:28:in `call'
from /usr/local/rvm/gems/ruby-2.3.0/gems/spring-1.7.2/lib/spring/client/command.rb:7:in `call'
from /usr/local/rvm/gems/ruby-2.3.0/gems/spring-1.7.2/lib/spring/client.rb:30:in `run'
from /usr/local/rvm/gems/ruby-2.3.0/gems/spring-1.7.2/bin/spring:49:in `<top (required)>'
from /usr/local/rvm/gems/ruby-2.3.0/gems/spring-1.7.2/lib/spring/binstub.rb:11:in `load'
from /usr/local/rvm/gems/ruby-2.3.0/gems/spring-1.7.2/lib/spring/binstub.rb:11:in `<top (required)>'
from /home/ubuntu/workspace/bin/spring:13:in `require'
from /home/ubuntu/workspace/bin/spring:13:in `<top (required)>'
from bin/rails:3:in `load'
from bin/rails:3:in `<main>'

Pushertc running error

I installed a WebRTC application developed in rails from this source: https://github.com/tokafish/pushertc and when I try to run it locally it shows me this error:
home/user/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/uri/rfc3986_parser.rb:17:in `rescue in split': bad URI(is not URI?): (URI::InvalidURIError)
Can somebody try this app and tell me what I am missing?
from /home/arsim/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/uri/rfc3986_parser.rb:14:in `split'
from /home/arsim/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/uri/rfc3986_parser.rb:72:in `parse'
from /home/arsim/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/uri/common.rb:226:in `parse'
from /home/arsim/.rvm/gems/ruby-2.2.1/gems/pusher-0.14.1/lib/pusher/client.rb:53:in `url='
from /home/arsim/Downloads/pushertc-master/config/initializers/pusher.rb:1:in `<top (required)>'
from /home/arsim/.rvm/gems/ruby-2.2.1/gems/activesupport-4.1.5/lib/active_support/dependencies.rb:241:in `load'
from /home/arsim/.rvm/gems/ruby-2.2.1/gems/activesupport-4.1.5/lib/active_support/dependencies.rb:241:in `block in load'
from /home/arsim/.rvm/gems/ruby-2.2.1/gems/activesupport-4.1.5/lib/active_support/dependencies.rb:232:in `load_dependency'
from /home/arsim/.rvm/gems/ruby-2.2.1/gems/activesupport-4.1.5/lib/active_support/dependencies.rb:241:in `load'
from /home/arsim/.rvm/gems/ruby-2.2.1/gems/railties-4.1.5/lib/rails/engine.rb:648:in `block in load_config_initializer'
from /home/arsim/.rvm/gems/ruby-2.2.1/gems/activesupport-4.1.5/lib/active_support/notifications.rb:161:in `instrument'
from /home/arsim/.rvm/gems/ruby-2.2.1/gems/railties-4.1.5/lib/rails/engine.rb:647:in `load_config_initializer'
from /home/arsim/.rvm/gems/ruby-2.2.1/gems/railties-4.1.5/lib/rails/engine.rb:612:in `block (2 levels) in <class:Engine>'
from /home/arsim/.rvm/gems/ruby-2.2.1/gems/railties-4.1.5/lib/rails/engine.rb:611:in `each'
from /home/arsim/.rvm/gems/ruby-2.2.1/gems/railties-4.1.5/lib/rails/engine.rb:611:in `block in <class:Engine>'
from /home/arsim/.rvm/gems/ruby-2.2.1/gems/railties-4.1.5/lib/rails/initializable.rb:30:in `instance_exec'
from /home/arsim/.rvm/gems/ruby-2.2.1/gems/railties-4.1.5/lib/rails/initializable.rb:30:in `run'
from /home/arsim/.rvm/gems/ruby-2.2.1/gems/railties-4.1.5/lib/rails/initializable.rb:55:in `block in run_initializers'
from /home/arsim/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:226:in `block in tsort_each'
from /home/arsim/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:348:in `block (2 levels) in each_strongly_connected_component'
from /home/arsim/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:420:in `block (2 levels) in each_strongly_connected_component_from'
from /home/arsim/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:429:in `each_strongly_connected_component_from'
from /home/arsim/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:419:in `block in each_strongly_connected_component_from'
from /home/arsim/.rvm/gems/ruby-2.2.1/gems/railties-4.1.5/lib/rails/initializable.rb:44:in `each'
from /home/arsim/.rvm/gems/ruby-2.2.1/gems/railties-4.1.5/lib/rails/initializable.rb:44:in `tsort_each_child'
from /home/arsim/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:413:in `call'
from /home/arsim/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:413:in `each_strongly_connected_component_from'
from /home/arsim/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:347:in `block in each_strongly_connected_component'
from /home/arsim/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:345:in `each'
from /home/arsim/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:345:in `call'
from /home/arsim/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:345:in `each_strongly_connected_component'
from /home/arsim/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:224:in `tsort_each'
from /home/arsim/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:203:in `tsort_each'
from /home/arsim/.rvm/gems/ruby-2.2.1/gems/railties-4.1.5/lib/rails/initializable.rb:54:in `run_initializers'
from /home/arsim/.rvm/gems/ruby-2.2.1/gems/railties-4.1.5/lib/rails/application.rb:300:in `initialize!'
from /home/arsim/Downloads/pushertc-master/config/environment.rb:5:in `<top (required)>'
from /home/arsim/Downloads/pushertc-master/config.ru:3:in `require'
from /home/arsim/Downloads/pushertc-master/config.ru:3:in `block in <main>'
from /home/arsim/.rvm/gems/ruby-2.2.1/gems/rack-1.5.2/lib/rack/builder.rb:55:in `instance_eval'
from /home/arsim/.rvm/gems/ruby-2.2.1/gems/rack-1.5.2/lib/rack/builder.rb:55:in `initialize'
from /home/arsim/Downloads/pushertc-master/config.ru:in `new'
from /home/arsim/Downloads/pushertc-master/config.ru:in `<main>'
from /home/arsim/.rvm/gems/ruby-2.2.1/gems/rack-1.5.2/lib/rack/builder.rb:49:in `eval'
from /home/arsim/.rvm/gems/ruby-2.2.1/gems/rack-1.5.2/lib/rack/builder.rb:49:in `new_from_string'
from /home/arsim/.rvm/gems/ruby-2.2.1/gems/rack-1.5.2/lib/rack/builder.rb:40:in `parse_file'
from /home/arsim/.rvm/gems/ruby-2.2.1/gems/rack-1.5.2/lib/rack/server.rb:277:in `build_app_and_options_from_config'
from /home/arsim/.rvm/gems/ruby-2.2.1/gems/rack-1.5.2/lib/rack/server.rb:199:in `app'
from /home/arsim/.rvm/gems/ruby-2.2.1/gems/railties-4.1.5/lib/rails/commands/server.rb:50:in `app'
from /home/arsim/.rvm/gems/ruby-2.2.1/gems/rack-1.5.2/lib/rack/server.rb:314:in `wrapped_app'
from /home/arsim/.rvm/gems/ruby-2.2.1/gems/railties-4.1.5/lib/rails/commands/server.rb:130:in `log_to_stdout'
from /home/arsim/.rvm/gems/ruby-2.2.1/gems/railties-4.1.5/lib/rails/commands/server.rb:67:in `start'
from /home/arsim/.rvm/gems/ruby-2.2.1/gems/railties-4.1.5/lib/rails/commands/commands_tasks.rb:81:in `block in server'
from /home/arsim/.rvm/gems/ruby-2.2.1/gems/railties-4.1.5/lib/rails/commands/commands_tasks.rb:76:in `tap'
from /home/arsim/.rvm/gems/ruby-2.2.1/gems/railties-4.1.5/lib/rails/commands/commands_tasks.rb:76:in `server'
from /home/arsim/.rvm/gems/ruby-2.2.1/gems/railties-4.1.5/lib/rails/commands/commands_tasks.rb:40:in `run_command!'
from /home/arsim/.rvm/gems/ruby-2.2.1/gems/railties-4.1.5/lib/rails/commands.rb:17:in `<top (required)>'
from /home/arsim/Downloads/pushertc-master/bin/rails:8:in `require'
from /home/arsim/Downloads/pushertc-master/bin/rails:8:in `<top (required)>'
from /home/arsim/.rvm/gems/ruby-2.2.1/gems/spring-1.1.3/lib/spring/client/rails.rb:27:in `load'
from /home/arsim/.rvm/gems/ruby-2.2.1/gems/spring-1.1.3/lib/spring/client/rails.rb:27:in `call'
from /home/arsim/.rvm/gems/ruby-2.2.1/gems/spring-1.1.3/lib/spring/client/command.rb:7:in `call'
from /home/arsim/.rvm/gems/ruby-2.2.1/gems/spring-1.1.3/lib/spring/client.rb:26:in `run'
from /home/arsim/.rvm/gems/ruby-2.2.1/gems/spring-1.1.3/bin/spring:48:in `<top (required)>'
from /home/arsim/.rvm/gems/ruby-2.2.1/gems/spring-1.1.3/lib/spring/binstub.rb:11:in `load'
from /home/arsim/.rvm/gems/ruby-2.2.1/gems/spring-1.1.3/lib/spring/binstub.rb:11:in `<top (required)>'
from /home/arsim/Downloads/pushertc-master/bin/spring:16:in `require'
from /home/arsim/Downloads/pushertc-master/bin/spring:16:in `<top (required)>'
from bin/rails:3:in `load'
from bin/rails:3:in `<main>'

rails server not starting any solutions [duplicate]

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'

Ruby gem devise error after generating model

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

print ruby on rails backstraces/stracktraces/errorss in reverse order on the screen

Here is annoyance I have with strack traces in rails -- they print the error first which means to view any error, you have scroll up in your termanl to see what the error is.
is there a way by which the error & stracktrace can be printed in reverse order, so you can view the error without having to scroll. for example:
This is rails/ruby currently prints stracktraces:
/activesupport/lib/active_support/dependencies.rb:228:in `require': cannot load such file -- pry (LoadError)
from /activesupport/lib/active_support/dependencies.rb:228:in `block in require'
from /activesupport/lib/active_support/dependencies.rb:213:in `load_dependency'
from /activesupport/lib/active_support/dependencies.rb:228:in `require'
from /actionpack/lib/action_dispatch/routing/mapper.rb:307:in `normalize_path'
from /actionpack/lib/action_dispatch/routing/mapper.rb:79:in `normalize_path!'
from /actionpack/lib/action_dispatch/routing/mapper.rb:65:in `initialize'
from /actionpack/lib/action_dispatch/routing/mapper.rb:1429:in `new'
from /actionpack/lib/action_dispatch/routing/mapper.rb:1429:in `add_route'
from /actionpack/lib/action_dispatch/routing/mapper.rb:1408:in `decomposed_match'
from /actionpack/lib/action_dispatch/routing/mapper.rb:1389:in `block in match'
from /actionpack/lib/action_dispatch/routing/mapper.rb:1380:in `each'
from /actionpack/lib/action_dispatch/routing/mapper.rb:1380:in `match'
from /actionpack/lib/action_dispatch/routing/mapper.rb:502:in `mount'
from /ruby-2.0.0-p0/bundler/gems/sprockets-rails-bbf755e8b3aa/lib/sprockets/railtie.rb:125:in `block (2 levels) in <class:Railtie>'
from /actionpack/lib/action_dispatch/routing/route_set.rb:315:in `instance_exec'
from /actionpack/lib/action_dispatch/routing/route_set.rb:315:in `eval_block'
from /actionpack/lib/action_dispatch/routing/route_set.rb:330:in `block in clear!'
from /actionpack/lib/action_dispatch/routing/route_set.rb:330:in `each'
from /actionpack/lib/action_dispatch/routing/route_set.rb:330:in `clear!'
from /railties/lib/rails/application/routes_reloader.rb:35:in `block in clear!'
from /railties/lib/rails/application/routes_reloader.rb:33:in `each'
from /railties/lib/rails/application/routes_reloader.rb:33:in `clear!'
from /railties/lib/rails/application/routes_reloader.rb:15:in `reload!'
from /railties/lib/rails/application/routes_reloader.rb:26:in `block in updater'
from /activesupport/lib/active_support/file_update_checker.rb:75:in `call'
from /activesupport/lib/active_support/file_update_checker.rb:75:in `execute'
from /railties/lib/rails/application/routes_reloader.rb:27:in `updater'
from /railties/lib/rails/application/routes_reloader.rb:7:in `execute_if_updated'
from /railties/lib/rails/application/finisher.rb:69:in `block in <module:Finisher>'
from /railties/lib/rails/initializable.rb:30:in `instance_exec'
from /railties/lib/rails/initializable.rb:30:in `run'
from /railties/lib/rails/initializable.rb:55:in `block in run_initializers'
from ruby-2.0.0-p0/lib/ruby/2.0.0/tsort.rb:150:in `block in tsort_each'
from ruby-2.0.0-p0/lib/ruby/2.0.0/tsort.rb:183:in `block (2 levels) in each_strongly_connected_component'
from ruby-2.0.0-p0/lib/ruby/2.0.0/tsort.rb:219:in `each_strongly_connected_component_from'
from ruby-2.0.0-p0/lib/ruby/2.0.0/tsort.rb:182:in `block in each_strongly_connected_component'
from ruby-2.0.0-p0/lib/ruby/2.0.0/tsort.rb:180:in `each'
from ruby-2.0.0-p0/lib/ruby/2.0.0/tsort.rb:180:in `each_strongly_connected_component'
from ruby-2.0.0-p0/lib/ruby/2.0.0/tsort.rb:148:in `tsort_each'
from /railties/lib/rails/initializable.rb:54:in `run_initializers'
from /railties/lib/rails/application.rb:214:in `initialize!'
from /railties/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /demo/config/environment.rb:5:in `<top (required)>'
from /demo/config.ru:3:in `require'
from /demo/config.ru:3:in `block in <main>'
from /ruby-2.0.0-p0/gems/rack-1.5.2/lib/rack/builder.rb:55:in `instance_eval'
from /ruby-2.0.0-p0/gems/rack-1.5.2/lib/rack/builder.rb:55:in `initialize'
from /demo/config.ru:in `new'
from /demo/config.ru:in `<main>'
from /ruby-2.0.0-p0/gems/rack-1.5.2/lib/rack/builder.rb:49:in `eval'
from /ruby-2.0.0-p0/gems/rack-1.5.2/lib/rack/builder.rb:49:in `new_from_string'
from /ruby-2.0.0-p0/gems/rack-1.5.2/lib/rack/builder.rb:40:in `parse_file'
from /ruby-2.0.0-p0/gems/rack-1.5.2/lib/rack/server.rb:277:in `build_app_and_options_from_config'
from /ruby-2.0.0-p0/gems/rack-1.5.2/lib/rack/server.rb:199:in `app'
from /railties/lib/rails/commands/server.rb:48:in `app'
from /ruby-2.0.0-p0/gems/rack-1.5.2/lib/rack/server.rb:314:in `wrapped_app'
from /railties/lib/rails/commands/server.rb:75:in `start'
from /railties/lib/rails/commands.rb:80:in `block in <top (required)>'
from /railties/lib/rails/commands.rb:75:in `tap'
from /railties/lib/rails/commands.rb:75:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'
Is there a way by which I can get this same stracktrace in reverse order, so I don't have to scroll my terminal everytime i get a error. something similar to this:
from bin/rails:4:in `<main>'
from bin/rails:4:in `require'
from /railties/lib/rails/commands.rb:75:in `<top (required)>'
from /railties/lib/rails/commands.rb:75:in `tap'
from /railties/lib/rails/commands.rb:80:in `block in <top (required)>'
from /railties/lib/rails/commands/server.rb:75:in `start'
from /ruby-2.0.0-p0/gems/rack-1.5.2/lib/rack/server.rb:314:in `wrapped_app'
from /railties/lib/rails/commands/server.rb:48:in `app'
from /ruby-2.0.0-p0/gems/rack-1.5.2/lib/rack/server.rb:199:in `app'
from /ruby-2.0.0-p0/gems/rack-1.5.2/lib/rack/server.rb:277:in `build_app_and_options_from_config'
from /ruby-2.0.0-p0/gems/rack-1.5.2/lib/rack/builder.rb:40:in `parse_file'
from /ruby-2.0.0-p0/gems/rack-1.5.2/lib/rack/builder.rb:49:in `new_from_string'
from /ruby-2.0.0-p0/gems/rack-1.5.2/lib/rack/builder.rb:49:in `eval'
from /demo/config.ru:in `<main>'
from /demo/config.ru:in `new'
from /ruby-2.0.0-p0/gems/rack-1.5.2/lib/rack/builder.rb:55:in `initialize'
from /ruby-2.0.0-p0/gems/rack-1.5.2/lib/rack/builder.rb:55:in `instance_eval'
from /demo/config.ru:3:in `block in <main>'
from /demo/config.ru:3:in `require'
from /demo/config/environment.rb:5:in `<top (required)>'
from /railties/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /railties/lib/rails/application.rb:214:in `initialize!'
from /railties/lib/rails/initializable.rb:54:in `run_initializers'
from ruby-2.0.0-p0/lib/ruby/2.0.0/tsort.rb:148:in `tsort_each'
from ruby-2.0.0-p0/lib/ruby/2.0.0/tsort.rb:180:in `each_strongly_connected_component'
from ruby-2.0.0-p0/lib/ruby/2.0.0/tsort.rb:180:in `each'
from ruby-2.0.0-p0/lib/ruby/2.0.0/tsort.rb:182:in `block in each_strongly_connected_component'
from ruby-2.0.0-p0/lib/ruby/2.0.0/tsort.rb:219:in `each_strongly_connected_component_from'
from ruby-2.0.0-p0/lib/ruby/2.0.0/tsort.rb:183:in `block (2 levels) in each_strongly_connected_component'
from ruby-2.0.0-p0/lib/ruby/2.0.0/tsort.rb:150:in `block in tsort_each'
from /railties/lib/rails/initializable.rb:55:in `block in run_initializers'
from /railties/lib/rails/initializable.rb:30:in `run'
from /railties/lib/rails/initializable.rb:30:in `instance_exec'
from /railties/lib/rails/application/finisher.rb:69:in `block in <module:Finisher>'
from /railties/lib/rails/application/routes_reloader.rb:7:in `execute_if_updated'
from /railties/lib/rails/application/routes_reloader.rb:27:in `updater'
from /activesupport/lib/active_support/file_update_checker.rb:75:in `execute'
from /activesupport/lib/active_support/file_update_checker.rb:75:in `call'
from /railties/lib/rails/application/routes_reloader.rb:26:in `block in updater'
from /railties/lib/rails/application/routes_reloader.rb:15:in `reload!'
from /railties/lib/rails/application/routes_reloader.rb:33:in `clear!'
from /railties/lib/rails/application/routes_reloader.rb:33:in `each'
from /railties/lib/rails/application/routes_reloader.rb:35:in `block in clear!'
from /actionpack/lib/action_dispatch/routing/route_set.rb:330:in `clear!'
from /actionpack/lib/action_dispatch/routing/route_set.rb:330:in `each'
from /actionpack/lib/action_dispatch/routing/route_set.rb:330:in `block in clear!'
from /actionpack/lib/action_dispatch/routing/route_set.rb:315:in `eval_block'
from /actionpack/lib/action_dispatch/routing/route_set.rb:315:in `instance_exec'
from /ruby-2.0.0-p0/bundler/gems/sprockets-rails-bbf755e8b3aa/lib/sprockets/railtie.rb:125:in `block (2 levels) in <class:Railtie>'
from /actionpack/lib/action_dispatch/routing/mapper.rb:502:in `mount'
from /actionpack/lib/action_dispatch/routing/mapper.rb:1380:in `match'
from /actionpack/lib/action_dispatch/routing/mapper.rb:1380:in `each'
from /actionpack/lib/action_dispatch/routing/mapper.rb:1389:in `block in match'
from /actionpack/lib/action_dispatch/routing/mapper.rb:1408:in `decomposed_match'
from /actionpack/lib/action_dispatch/routing/mapper.rb:1429:in `add_route'
from /actionpack/lib/action_dispatch/routing/mapper.rb:1429:in `new'
from /actionpack/lib/action_dispatch/routing/mapper.rb:65:in `initialize'
from /actionpack/lib/action_dispatch/routing/mapper.rb:79:in `normalize_path!'
from /actionpack/lib/action_dispatch/routing/mapper.rb:307:in `normalize_path'
from /activesupport/lib/active_support/dependencies.rb:228:in `require'
from /activesupport/lib/active_support/dependencies.rb:213:in `load_dependency'
from /activesupport/lib/active_support/dependencies.rb:228:in `block in require'
/activesupport/lib/active_support/dependencies.rb:228:in `require': cannot load such file -- pry (LoadError)
Possible?
There are several ways to do this.
If you're in irb, or the debugger something like:
caller.reverse
Will give you what you want.
The alternative then is to wrap all your code like so
begin
all the code
rescue StandardError => e
puts e.backtrace.reverse
end
And finally you could extend backtrace on Exception to print caller.reverse but extending core modules is not a great idea at all.

Resources