Unable to start Rails Server after updating to Rails 4 - ruby-on-rails

I just upgraded to rails 4, and when I run rails s, I get the output pasted below. I've made sure that my gems are up to date by running bundle install and bundle update, and I've consulted other SO pages with the same issues, but can't figure out what's going wrong with mine. Please help!
Codys-MacBook-Pro:club_website codyma$ rails s
=> Booting WEBrick
=> Rails 4.0.1 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
/Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/actionpack- 4.0.1/lib/action_dispatch/middleware/stack.rb:107:in `delete': can't modify frozen Array (RuntimeError)
from /Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/actionpack- 4.0.1/lib/action_dispatch/middleware/stack.rb:107:in `delete'
from /Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/sass-rails-4.0.1/lib/sass/rails/railtie.rb:29:in `block in <class:Railtie>'
from /Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.0.1/lib/active_support/lazy_load_hooks.rb:36:in `call'
from /Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.0.1/lib/active_support/lazy_load_hooks.rb:36:in `execute_hook'
from /Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.0.1/lib/active_support/lazy_load_hooks.rb:45:in `block in run_load_hooks'
from /Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.0.1/lib/active_support/lazy_load_hooks.rb:44:in `each'
from /Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.0.1/lib/active_support/lazy_load_hooks.rb:44:in `run_load_hooks'
from /Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.1/lib/rails/application/finisher.rb:62:in `block in <module:Finisher>'
from /Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.1/lib/rails/initializable.rb:30:in `instance_exec'
from /Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.1/lib/rails/initializable.rb:30:in `run'
from /Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.1/lib/rails/initializable.rb:55:in `block in run_initializers'
from /Users/codyma/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/tsort.rb:150:in `block in tsort_each'
from /Users/codyma/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/tsort.rb:183:in `block (2 levels) in each_strongly_connected_component'
from /Users/codyma/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/tsort.rb:219:in `each_strongly_connected_component_from'
from /Users/codyma/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/tsort.rb:182:in `block in each_strongly_connected_component'
from /Users/codyma/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/tsort.rb:180:in `each'
from /Users/codyma/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/tsort.rb:180:in `each_strongly_connected_component'
from /Users/codyma/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/tsort.rb:148:in `tsort_each'
from /Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.1/lib/rails/initializable.rb:54:in `run_initializers'
from /Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.1/lib/rails/application.rb:215:in `initialize!'
from /Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.1/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /Users/codyma/Development/club_website/config/environment.rb:5:in `<top (required)>'
from /Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.0.1/lib/active_support/dependencies.rb:229:in `require'
from /Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.0.1/lib/active_support/dependencies.rb:229:in `block in require'
from /Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.0.1/lib/active_support/dependencies.rb:214:in `load_dependency'
from /Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.0.1/lib/active_support/dependencies.rb:229:in `require'
from /Users/codyma/Development/club_website/config.ru:3:in `block in <main>'
from /Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/builder.rb:55:in `instance_eval'
from /Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/builder.rb:55:in `initialize'
from /Users/codyma/Development/club_website/config.ru:in `new'
from /Users/codyma/Development/club_website/config.ru:in `<main>'
from /Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/builder.rb:49:in `eval'
from /Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/builder.rb:49:in `new_from_string'
from /Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/builder.rb:40:in `parse_file'
from /Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/server.rb:277:in `build_app_and_options_from_config'
from /Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/server.rb:199:in `app'
from /Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.1/lib/rails/commands/server.rb:48:in `app'
from /Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/server.rb:314:in `wrapped_app'
from /Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.1/lib/rails/commands/server.rb:75:in `start'
from /Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.1/lib/rails/commands.rb:76:in `block in <top (required)>'
from /Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.1/lib/rails/commands.rb:71:in `tap'
from /Users/codyma/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.1/lib/rails/commands.rb:71:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'

Maybe there's an error in your config.ru file.
For Rails 3:
# This file is used by Rack-based servers to start the application.
require ::File.expand_path('../config/environment', __FILE__)
run YouApp::Application
For Rails 4:
# This file is used by Rack-based servers to start the application.
require ::File.expand_path('../config/environment', __FILE__)
run Rails.application

Related

"rails s" and "rake db:migrate" returning errors such as warning: circular argument reference

I'm trying to start up a rails project from a git repo. I have already bundle installed without any errors, and have the correct versions of Ruby (2.2.4) and Rails (4.1.9) that are specified in the Gemfile. When I try to start up the rails server using rails s on bash (Ubuntu), I get:
/home/name/.rvm/gems/ruby-2.2.4#drive2/gems/compass-core-1.0.1/lib/compass/core/caniuse.rb:72: warning: circular argument reference - browsers
/home/name/.rvm/gems/ruby-2.2.4#drive2/gems/fog-1.19.0/lib/fog/core/collection.rb:150: warning: circular argument reference - filters
/home/name/.rvm/gems/ruby-2.2.4#drive2/gems/fog-1.19.0/lib/fog/rackspace/mock_data.rb:43: warning: duplicated key at line 81 ignored: "name"
=> Booting Thin
=> Rails 4.1.9 application starting in development on http://0.0.0.0:3000
=> Run `rails server -h` for more startup options
=> Notice: server is listening on all interfaces (0.0.0.0). Consider using 127.0.0.1 (--binding option)
=> Ctrl-C to shutdown server
Exiting
/home/name/.rvm/gems/ruby-2.2.4#drive2/gems/railties-4.1.9/lib/rails/application/configuration.rb:105:in `database_configuration': Cannot load `Rails.application.database_configuration`: (RuntimeError)
Could not load database configuration. No such file -
from /home/name/.rvm/gems/ruby-2.2.4#drive2/gems/activerecord-4.1.9/lib/active_record/railtie.rb:126:in `block (2 levels) in <class:Railtie>'
from /home/name/.rvm/gems/ruby-2.2.4#drive2/gems/activesupport-4.1.9/lib/active_support/lazy_load_hooks.rb:38:in `instance_eval'
from /home/name/.rvm/gems/ruby-2.2.4#drive2/gems/activesupport-4.1.9/lib/active_support/lazy_load_hooks.rb:38:in `execute_hook'
from /home/name/.rvm/gems/ruby-2.2.4#drive2/gems/activesupport-4.1.9/lib/active_support/lazy_load_hooks.rb:28:in `block in on_load'
from /home/name/.rvm/gems/ruby-2.2.4#drive2/gems/activesupport-4.1.9/lib/active_support/lazy_load_hooks.rb:27:in `each'
from /home/name/.rvm/gems/ruby-2.2.4#drive2/gems/activesupport-4.1.9/lib/active_support/lazy_load_hooks.rb:27:in `on_load'
from /home/name/.rvm/gems/ruby-2.2.4#drive2/gems/activerecord-4.1.9/lib/active_record/railtie.rb:116:in `block in <class:Railtie>'
from /home/name/.rvm/gems/ruby-2.2.4#drive2/gems/railties-4.1.9/lib/rails/initializable.rb:30:in `instance_exec'
from /home/name/.rvm/gems/ruby-2.2.4#drive2/gems/railties-4.1.9/lib/rails/initializable.rb:30:in `run'
from /home/name/.rvm/gems/ruby-2.2.4#drive2/gems/railties-4.1.9/lib/rails/initializable.rb:55:in `block in run_initializers'
from /home/name/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:226:in `block in tsort_each'
from /home/name/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:348:in `block (2 levels) in each_strongly_connected_component'
from /home/name/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:429:in `each_strongly_connected_component_from'
from /home/name/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:347:in `block in each_strongly_connected_component'
from /home/name/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:345:in `each'
from /home/name/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:345:in `call'
from /home/name/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:345:in `each_strongly_connected_component'
from /home/name/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:224:in `tsort_each'
from /home/name/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:203:in `tsort_each'
from /home/name/.rvm/gems/ruby-2.2.4#drive2/gems/railties-4.1.9/lib/rails/initializable.rb:54:in `run_initializers'
from /home/name/.rvm/gems/ruby-2.2.4#drive2/gems/railties-4.1.9/lib/rails/application.rb:300:in `initialize!'
from /home/name/.rvm/gems/ruby-2.2.4#drive2/gems/railties-4.1.9/lib/rails/railtie.rb:194:in `public_send'
from /home/name/.rvm/gems/ruby-2.2.4#drive2/gems/railties-4.1.9/lib/rails/railtie.rb:194:in `method_missing'
from /home/name/Documents/RAdrive2/drive2/config/environment.rb:5:in `<top (required)>'
from /home/name/.rvm/gems/ruby-2.2.4#drive2/gems/activesupport-4.1.9/lib/active_support/dependencies.rb:247:in `require'
from /home/name/.rvm/gems/ruby-2.2.4#drive2/gems/activesupport-4.1.9/lib/active_support/dependencies.rb:247:in `block in require'
from /home/name/.rvm/gems/ruby-2.2.4#drive2/gems/activesupport-4.1.9/lib/active_support/dependencies.rb:232:in `load_dependency'
from /home/name/.rvm/gems/ruby-2.2.4#drive2/gems/activesupport-4.1.9/lib/active_support/dependencies.rb:247:in `require'
from /home/name/Documents/RAdrive2/drive2/config.ru:3:in `block in <main>'
from /home/name/.rvm/gems/ruby-2.2.4#drive2/gems/rack-1.5.5/lib/rack/builder.rb:55:in `instance_eval'
from /home/name/.rvm/gems/ruby-2.2.4#drive2/gems/rack-1.5.5/lib/rack/builder.rb:55:in `initialize'
from /home/name/Documents/RAdrive2/drive2/config.ru:in `new'
from /home/name/Documents/RAdrive2/drive2/config.ru:in `<main>'
from /home/name/.rvm/gems/ruby-2.2.4#drive2/gems/rack-1.5.5/lib/rack/builder.rb:49:in `eval'
from /home/name/.rvm/gems/ruby-2.2.4#drive2/gems/rack-1.5.5/lib/rack/builder.rb:49:in `new_from_string'
from /home/name/.rvm/gems/ruby-2.2.4#drive2/gems/rack-1.5.5/lib/rack/builder.rb:40:in `parse_file'
from /home/name/.rvm/gems/ruby-2.2.4#drive2/gems/rack-1.5.5/lib/rack/server.rb:277:in `build_app_and_options_from_config'
from /home/name/.rvm/gems/ruby-2.2.4#drive2/gems/rack-1.5.5/lib/rack/server.rb:199:in `app'
from /home/name/.rvm/gems/ruby-2.2.4#drive2/gems/railties-4.1.9/lib/rails/commands/server.rb:50:in `app'
from /home/name/.rvm/gems/ruby-2.2.4#drive2/gems/rack-1.5.5/lib/rack/server.rb:314:in `wrapped_app'
from /home/name/.rvm/gems/ruby-2.2.4#drive2/gems/railties-4.1.9/lib/rails/commands/server.rb:130:in `log_to_stdout'
from /home/name/.rvm/gems/ruby-2.2.4#drive2/gems/railties-4.1.9/lib/rails/commands/server.rb:67:in `start'
from /home/name/.rvm/gems/ruby-2.2.4#drive2/gems/railties-4.1.9/lib/rails/commands/commands_tasks.rb:81:in `block in server'
from /home/name/.rvm/gems/ruby-2.2.4#drive2/gems/railties-4.1.9/lib/rails/commands/commands_tasks.rb:76:in `tap'
from /home/name/.rvm/gems/ruby-2.2.4#drive2/gems/railties-4.1.9/lib/rails/commands/commands_tasks.rb:76:in `server'
from /home/name/.rvm/gems/ruby-2.2.4#drive2/gems/railties-4.1.9/lib/rails/commands/commands_tasks.rb:40:in `run_command!'
from /home/name/.rvm/gems/ruby-2.2.4#drive2/gems/railties-4.1.9/lib/rails/commands.rb:17:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'
Pretty much the same thing happens when I do rake db:migrate. What happened here?
Try to run the commands as a super user: sudo bundle install and sudo rails server

Gem errors when upgrading rails app from 3 to 4, unable to run rails s

I inherited a rails app that I believe was written in rails 3. I am now running rails 4.2.3. When I try to run the app locally (rails s) I get a host of errors related to active record and initializers. I have searched for these errors individually, but nothing I have done so far has worked.
I have added the protected attributes gem as mentioned here https://github.com/rails/protected_attributes/issues/5
I upgraded the gem file to use rails 4
I have upgraded the gems using bundle upgrade. No luck.
I have sent a message to the original dev and he has no idea why this is happening.
What do I need to do in order to make this app run locally without errors?
This is the errors I get when running rails s in terminal:
Astrids-MacBook-Air% rails s
=> Booting WEBrick
=> Rails 4.2.3 application starting in development on http://localhost:3000
=> Run `rails server -h` for more startup options
=> Ctrl-C to shutdown server
config.eager_load is set to nil. Please update your config/environments/*.rb files accordingly:
* development - set it to false
* test - set it to false (unless you use a tool that preloads your test environment)
* production - set it to true
Exiting
/Users/Astrid/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.3/lib/active_record/dynamic_matchers.rb:26:in `method_missing': undefined method `auto_explain_threshold_in_seconds=' for ActiveRecord::Base:Class (NoMethodError)
from /Users/Astrid/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.3/lib/active_record/railtie.rb:108:in `block (3 levels) in <class:Railtie>'
from /Users/Astrid/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.3/lib/active_record/railtie.rb:107:in `each'
from /Users/Astrid/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.3/lib/active_record/railtie.rb:107:in `block (2 levels) in <class:Railtie>'
from /Users/Astrid/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.3/lib/active_support/lazy_load_hooks.rb:38:in `instance_eval'
from /Users/Astrid/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.3/lib/active_support/lazy_load_hooks.rb:38:in `execute_hook'
from /Users/Astrid/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.3/lib/active_support/lazy_load_hooks.rb:28:in `block in on_load'
from /Users/Astrid/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.3/lib/active_support/lazy_load_hooks.rb:27:in `each'
from /Users/Astrid/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.3/lib/active_support/lazy_load_hooks.rb:27:in `on_load'
from /Users/Astrid/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.3/lib/active_record/railtie.rb:106:in `block in <class:Railtie>'
from /Users/Astrid/.rvm/gems/ruby-2.2.1/gems/railties-4.2.3/lib/rails/initializable.rb:30:in `instance_exec'
from /Users/Astrid/.rvm/gems/ruby-2.2.1/gems/railties-4.2.3/lib/rails/initializable.rb:30:in `run'
from /Users/Astrid/.rvm/gems/ruby-2.2.1/gems/railties-4.2.3/lib/rails/initializable.rb:55:in `block in run_initializers'
from /Users/Astrid/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:226:in `block in tsort_each'
from /Users/Astrid/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:348:in `block (2 levels) in each_strongly_connected_component'
from /Users/Astrid/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:429:in `each_strongly_connected_component_from'
from /Users/Astrid/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:347:in `block in each_strongly_connected_component'
from /Users/Astrid/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:345:in `each'
from /Users/Astrid/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:345:in `call'
from /Users/Astrid/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:345:in `each_strongly_connected_component'
from /Users/Astrid/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:224:in `tsort_each'
from /Users/Astrid/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:203:in `tsort_each'
from /Users/Astrid/.rvm/gems/ruby-2.2.1/gems/railties-4.2.3/lib/rails/initializable.rb:54:in `run_initializers'
from /Users/Astrid/.rvm/gems/ruby-2.2.1/gems/railties-4.2.3/lib/rails/application.rb:352:in `initialize!'
from /Users/Astrid/.rvm/gems/ruby-2.2.1/gems/railties-4.2.3/lib/rails/railtie.rb:194:in `public_send'
from /Users/Astrid/.rvm/gems/ruby-2.2.1/gems/railties-4.2.3/lib/rails/railtie.rb:194:in `method_missing'
from /Users/Astrid/Documents/Development/Handled/ticketsnap_server/config/environment.rb:5:in `<top (required)>'
from /Users/Astrid/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.3/lib/active_support/dependencies.rb:274:in `require'
from /Users/Astrid/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.3/lib/active_support/dependencies.rb:274:in `block in require'
from /Users/Astrid/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.3/lib/active_support/dependencies.rb:240:in `load_dependency'
from /Users/Astrid/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.3/lib/active_support/dependencies.rb:274:in `require'
from /Users/Astrid/Documents/Development/Handled/ticketsnap_server/config.ru:3:in `block in <main>'
from /Users/Astrid/.rvm/gems/ruby-2.2.1/gems/rack-1.6.4/lib/rack/builder.rb:55:in `instance_eval'
from /Users/Astrid/.rvm/gems/ruby-2.2.1/gems/rack-1.6.4/lib/rack/builder.rb:55:in `initialize'
from /Users/Astrid/Documents/Development/Handled/ticketsnap_server/config.ru:in `new'
from /Users/Astrid/Documents/Development/Handled/ticketsnap_server/config.ru:in `<main>'
from /Users/Astrid/.rvm/gems/ruby-2.2.1/gems/rack-1.6.4/lib/rack/builder.rb:49:in `eval'
from /Users/Astrid/.rvm/gems/ruby-2.2.1/gems/rack-1.6.4/lib/rack/builder.rb:49:in `new_from_string'
from /Users/Astrid/.rvm/gems/ruby-2.2.1/gems/rack-1.6.4/lib/rack/builder.rb:40:in `parse_file'
from /Users/Astrid/.rvm/gems/ruby-2.2.1/gems/rack-1.6.4/lib/rack/server.rb:299:in `build_app_and_options_from_config'
from /Users/Astrid/.rvm/gems/ruby-2.2.1/gems/rack-1.6.4/lib/rack/server.rb:208:in `app'
from /Users/Astrid/.rvm/gems/ruby-2.2.1/gems/railties-4.2.3/lib/rails/commands/server.rb:61:in `app'
from /Users/Astrid/.rvm/gems/ruby-2.2.1/gems/rack-1.6.4/lib/rack/server.rb:336:in `wrapped_app'
from /Users/Astrid/.rvm/gems/ruby-2.2.1/gems/railties-4.2.3/lib/rails/commands/server.rb:139:in `log_to_stdout'
from /Users/Astrid/.rvm/gems/ruby-2.2.1/gems/railties-4.2.3/lib/rails/commands/server.rb:78:in `start'
from /Users/Astrid/.rvm/gems/ruby-2.2.1/gems/railties-4.2.3/lib/rails/commands/commands_tasks.rb:80:in `block in server'
from /Users/Astrid/.rvm/gems/ruby-2.2.1/gems/railties-4.2.3/lib/rails/commands/commands_tasks.rb:75:in `tap'
from /Users/Astrid/.rvm/gems/ruby-2.2.1/gems/railties-4.2.3/lib/rails/commands/commands_tasks.rb:75:in `server'
from /Users/Astrid/.rvm/gems/ruby-2.2.1/gems/railties-4.2.3/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
from /Users/Astrid/.rvm/gems/ruby-2.2.1/gems/railties-4.2.3/lib/rails/commands.rb:17:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
Remove auto_explain_threshold_in_seconds as said on release notes.

Can not start rails server after changing gem file

I just started the Ruby on Rails Tutorial by Michael Hartl. I am currently trying to get the exact same gems versions (listing 1.5 in the book) he uses to avoid future problems. I managed to run bundle update and bundle install with no problems but when I try to start the server by rails server I get error you will see below.
The only main difference I can spot between his dev environment and mine is that I use rbenv and set the local ruby version for the project to 2.0.0-p353, and he uses RVM with ruby version 2.0.0. Could this be causing the problem? I can't find a ruby 2.0.0 version (without any -p...) on rbenv.
Thank you for your help!!
=> Booting WEBrick
=> Rails 4.0.5 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
/Users/eduardopoleo/Desktop/rails_projects/first_app/config/environments/development.rb:1:in `<top (required)>': undefined method `configure' for #<FirstApp::Application:0x007ff71196dee8> (NoMethodError)
from /Users/eduardopoleo/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/activesupport-4.0.5/lib/active_support/dependencies.rb:229:in `require'
from /Users/eduardopoleo/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/activesupport-4.0.5/lib/active_support/dependencies.rb:229:in `block in require'
from /Users/eduardopoleo/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/activesupport-4.0.5/lib/active_support/dependencies.rb:214:in `load_dependency'
from /Users/eduardopoleo/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/activesupport-4.0.5/lib/active_support/dependencies.rb:229:in `require'
from /Users/eduardopoleo/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/railties-4.0.5/lib/rails/engine.rb:591:in `block (2 levels) in <class:Engine>'
from /Users/eduardopoleo/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/railties-4.0.5/lib/rails/engine.rb:590:in `each'
from /Users/eduardopoleo/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/railties-4.0.5/lib/rails/engine.rb:590:in `block in <class:Engine>'
from /Users/eduardopoleo/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/railties-4.0.5/lib/rails/initializable.rb:30:in `instance_exec'
from /Users/eduardopoleo/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/railties-4.0.5/lib/rails/initializable.rb:30:in `run'
from /Users/eduardopoleo/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/railties-4.0.5/lib/rails/initializable.rb:55:in `block in run_initializers'
from /Users/eduardopoleo/.rbenv/versions/2.0.0-p353/lib/ruby/2.0.0/tsort.rb:150:in `block in tsort_each'
from /Users/eduardopoleo/.rbenv/versions/2.0.0-p353/lib/ruby/2.0.0/tsort.rb:183:in `block (2 levels) in each_strongly_connected_component'
from /Users/eduardopoleo/.rbenv/versions/2.0.0-p353/lib/ruby/2.0.0/tsort.rb:210:in `block (2 levels) in each_strongly_connected_component_from'
from /Users/eduardopoleo/.rbenv/versions/2.0.0-p353/lib/ruby/2.0.0/tsort.rb:219:in `each_strongly_connected_component_from'
from /Users/eduardopoleo/.rbenv/versions/2.0.0-p353/lib/ruby/2.0.0/tsort.rb:209:in `block in each_strongly_connected_component_from'
from /Users/eduardopoleo/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/railties-4.0.5/lib/rails/initializable.rb:44:in `each'
from /Users/eduardopoleo/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/railties-4.0.5/lib/rails/initializable.rb:44:in `tsort_each_child'
from /Users/eduardopoleo/.rbenv/versions/2.0.0-p353/lib/ruby/2.0.0/tsort.rb:203:in `each_strongly_connected_component_from'
from /Users/eduardopoleo/.rbenv/versions/2.0.0-p353/lib/ruby/2.0.0/tsort.rb:182:in `block in each_strongly_connected_component'
from /Users/eduardopoleo/.rbenv/versions/2.0.0-p353/lib/ruby/2.0.0/tsort.rb:180:in `each'
from /Users/eduardopoleo/.rbenv/versions/2.0.0-p353/lib/ruby/2.0.0/tsort.rb:180:in `each_strongly_connected_component'
from /Users/eduardopoleo/.rbenv/versions/2.0.0-p353/lib/ruby/2.0.0/tsort.rb:148:in `tsort_each'
from /Users/eduardopoleo/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/railties-4.0.5/lib/rails/initializable.rb:54:in `run_initializers'
from /Users/eduardopoleo/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/railties-4.0.5/lib/rails/application.rb:215:in `initialize!'
from /Users/eduardopoleo/Desktop/rails_projects/first_app/config/environment.rb:5:in `<top (required)>'
from /Users/eduardopoleo/Desktop/rails_projects/first_app/config.ru:3:in `require'
from /Users/eduardopoleo/Desktop/rails_projects/first_app/config.ru:3:in `block in <main>'
from /Users/eduardopoleo/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:55:in `instance_eval'
from /Users/eduardopoleo/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:55:in `initialize'
from /Users/eduardopoleo/Desktop/rails_projects/first_app/config.ru:in `new'
from /Users/eduardopoleo/Desktop/rails_projects/first_app/config.ru:in `<main>'
from /Users/eduardopoleo/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:49:in `eval'
from /Users/eduardopoleo/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:49:in `new_from_string'
from /Users/eduardopoleo/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:40:in `parse_file'
from /Users/eduardopoleo/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:277:in `build_app_and_options_from_config'
from /Users/eduardopoleo/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:199:in `app'
from /Users/eduardopoleo/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/railties-4.0.5/lib/rails/commands/server.rb:48:in `app'
from /Users/eduardopoleo/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:314:in `wrapped_app'
from /Users/eduardopoleo/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/railties-4.0.5/lib/rails/commands/server.rb:75:in `start'
from /Users/eduardopoleo/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/railties-4.0.5/lib/rails/commands.rb:76:in `block in <top (required)>'
from /Users/eduardopoleo/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/railties-4.0.5/lib/rails/commands.rb:71:in `tap'
from /Users/eduardopoleo/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/railties-4.0.5/lib/rails/commands.rb:71:in `<top (required)>'
from bin/rails:8:in `require'
from bin/rails:8:in `<main>'

Spree 2 - Advanced Reporting - Rails 4 - Run Error

Has anyone successfully tried to install Advanced Reporting using Rails 4?
I've successfully installed Spree 2 and was able to get the initial site up and running without this gem. However, this gem throws an error while running rails s, in the development environmnet.
Error message received when: rails s
D:\work\projects\ror\clientsite.com\sites\deals.clientsite.com>rails s
DL is deprecated, please use Fiddle
D:/work/projects/ror/clientsite.com/sites/deals.clientsite.com/vendor/extensions/advanced_reporting/ruby/2.0.0/gems/ruport-util-0.14.0/lib/ruport/util/graph/amline.rb:105: warning: undefining `object_id' may cause serious problems
=> 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
D:/work/projects/ror/clientsite.com/sites/deals.clientsite.com/vendor/extensions/advanced_reporting/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:222:in `load': cannot load such file -- D:/work/projects/ror/clientsite.com/sites/deals.clientsite.com/vendor/extensions/advanced_reporting/ruby/2.0.0/bundler/gems/spree_active_shipping-057d7d306cdc/lib/spree_active_shipping/../../app/models/spree/calculator/shipping/canada_post/priority_worldwide_intl.rb (LoadError)
from D:/work/projects/ror/clientsite.com/sites/deals.clientsite.com/vendor/extensions/advanced_reporting/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:222:in `block in load'
from D:/work/projects/ror/clientsite.com/sites/deals.clientsite.com/vendor/extensions/advanced_reporting/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:213:in `load_dependency'
from D:/work/projects/ror/clientsite.com/sites/deals.clientsite.com/vendor/extensions/advanced_reporting/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:222:in `load'
from D:/work/projects/ror/clientsite.com/sites/deals.clientsite.com/vendor/extensions/advanced_reporting/ruby/2.0.0/bundler/gems/spree_active_shipping-057d7d306cdc/lib/spree_active_shipping/engine.rb:32:in `block (2 levels) in <class:Engine>'
from D:/work/projects/ror/clientsite.com/sites/deals.clientsite.com/vendor/extensions/advanced_reporting/ruby/2.0.0/bundler/gems/spree_active_shipping-057d7d306cdc/lib/spree_active_shipping/engine.rb:31:in `each'
from D:/work/projects/ror/clientsite.com/sites/deals.clientsite.com/vendor/extensions/advanced_reporting/ruby/2.0.0/bundler/gems/spree_active_shipping-057d7d306cdc/lib/spree_active_shipping/engine.rb:31:in `block in <class:Engine>'
from D:/work/projects/ror/clientsite.com/sites/deals.clientsite.com/vendor/extensions/advanced_reporting/ruby/2.0.0/gems/railties-4.0.0/lib/rails/initializable.rb:30:in `instance_exec'
from D:/work/projects/ror/clientsite.com/sites/deals.clientsite.com/vendor/extensions/advanced_reporting/ruby/2.0.0/gems/railties-4.0.0/lib/rails/initializable.rb:30:in `run'
from D:/work/projects/ror/clientsite.com/sites/deals.clientsite.com/vendor/extensions/advanced_reporting/ruby/2.0.0/gems/railties-4.0.0/lib/rails/initializable.rb:55:in `block in run_initializers'
from C:/ruby/Ruby200/lib/ruby/2.0.0/tsort.rb:150:in `block in tsort_each'
from C:/ruby/Ruby200/lib/ruby/2.0.0/tsort.rb:183:in `block (2 levels) in each_strongly_connected_component'
from C:/ruby/Ruby200/lib/ruby/2.0.0/tsort.rb:219:in `each_strongly_connected_component_from'
from C:/ruby/Ruby200/lib/ruby/2.0.0/tsort.rb:182:in `block in each_strongly_connected_component'
from C:/ruby/Ruby200/lib/ruby/2.0.0/tsort.rb:180:in `each'
from C:/ruby/Ruby200/lib/ruby/2.0.0/tsort.rb:180:in `each_strongly_connected_component'
from C:/ruby/Ruby200/lib/ruby/2.0.0/tsort.rb:148:in `tsort_each'
from D:/work/projects/ror/clientsite.com/sites/deals.clientsite.com/vendor/extensions/advanced_reporting/ruby/2.0.0/gems/railties-4.0.0/lib/rails/initializable.rb:54:in `run_initializers'
from D:/work/projects/ror/clientsite.com/sites/deals.clientsite.com/vendor/extensions/advanced_reporting/ruby/2.0.0/gems/railties-4.0.0/lib/rails/application.rb:215:in `initialize!'
from D:/work/projects/ror/clientsite.com/sites/deals.clientsite.com/vendor/extensions/advanced_reporting/ruby/2.0.0/gems/railties-4.0.0/lib/rails/railtie/configurable.rb:30:in `method_missing'
from D:/work/projects/ror/clientsite.com/sites/deals.clientsite.com/config/environment.rb:5:in `<top (required)>'
from D:/work/projects/ror/clientsite.com/sites/deals.clientsite.com/vendor/extensions/advanced_reporting/ruby/2.0.0/gems/polyglot-0.3.3/lib/polyglot.rb:63:in `require'
from D:/work/projects/ror/clientsite.com/sites/deals.clientsite.com/vendor/extensions/advanced_reporting/ruby/2.0.0/gems/polyglot-0.3.3/lib/polyglot.rb:63:in `require'
from D:/work/projects/ror/clientsite.com/sites/deals.clientsite.com/vendor/extensions/advanced_reporting/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `block in require'
from D:/work/projects/ror/clientsite.com/sites/deals.clientsite.com/vendor/extensions/advanced_reporting/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:213:in `load_dependency'
from D:/work/projects/ror/clientsite.com/sites/deals.clientsite.com/vendor/extensions/advanced_reporting/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `require'
from D:/work/projects/ror/clientsite.com/sites/deals.clientsite.com/config.ru:3:in `block in <main>'
from D:/work/projects/ror/clientsite.com/sites/deals.clientsite.com/vendor/extensions/advanced_reporting/ruby/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:55:in `instance_eval'
from D:/work/projects/ror/clientsite.com/sites/deals.clientsite.com/vendor/extensions/advanced_reporting/ruby/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:55:in `initialize'
from D:/work/projects/ror/clientsite.com/sites/deals.clientsite.com/config.ru:in `new'
from D:/work/projects/ror/clientsite.com/sites/deals.clientsite.com/config.ru:in `<main>'
from D:/work/projects/ror/clientsite.com/sites/deals.clientsite.com/vendor/extensions/advanced_reporting/ruby/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:49:in `eval'
from D:/work/projects/ror/clientsite.com/sites/deals.clientsite.com/vendor/extensions/advanced_reporting/ruby/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:49:in `new_from_string'
from D:/work/projects/ror/clientsite.com/sites/deals.clientsite.com/vendor/extensions/advanced_reporting/ruby/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:40:in `parse_file'
from D:/work/projects/ror/clientsite.com/sites/deals.clientsite.com/vendor/extensions/advanced_reporting/ruby/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:277:in `build_app_and_options_from_config'
from D:/work/projects/ror/clientsite.com/sites/deals.clientsite.com/vendor/extensions/advanced_reporting/ruby/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:199:in `app'
from D:/work/projects/ror/clientsite.com/sites/deals.clientsite.com/vendor/extensions/advanced_reporting/ruby/2.0.0/gems/railties-4.0.0/lib/rails/commands/server.rb:48:in `app'
from D:/work/projects/ror/clientsite.com/sites/deals.clientsite.com/vendor/extensions/advanced_reporting/ruby/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:314:in `wrapped_app'
from D:/work/projects/ror/clientsite.com/sites/deals.clientsite.com/vendor/extensions/advanced_reporting/ruby/2.0.0/gems/railties-4.0.0/lib/rails/commands/server.rb:75:in `start'
from D:/work/projects/ror/clientsite.com/sites/deals.clientsite.com/vendor/extensions/advanced_reporting/ruby/2.0.0/gems/railties-4.0.0/lib/rails/commands.rb:78:in `block in <top (required)>'
from D:/work/projects/ror/clientsite.com/sites/deals.clientsite.com/vendor/extensions/advanced_reporting/ruby/2.0.0/gems/railties-4.0.0/lib/rails/commands.rb:73:in `tap'
from D:/work/projects/ror/clientsite.com/sites/deals.clientsite.com/vendor/extensions/advanced_reporting/ruby/2.0.0/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>'

Unable to start WEBrick with Rails 3.2.6

I update my Rails version 3.2.3 to 3.2.6. After running the server getting following error:
=> Booting WEBrick
=> Rails 3.2.6 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Exiting
/usr/local/lib/ruby/gems/1.9.1/gems/activerecord-3.2.6/lib/active_record/dynamic_matchers.rb:50:in `method_missing': undefined method `instance' for #<Class:0x9844050> (NoMethodError)
from /usr/local/lib/ruby/gems/1.9.1/gems/activemodel-3.2.6/lib/active_model/observing.rb:86:in `instantiate_observer'
from /usr/local/lib/ruby/gems/1.9.1/gems/activemodel-3.2.6/lib/active_model/observing.rb:59:in `block in instantiate_observers'
from /usr/local/lib/ruby/gems/1.9.1/gems/activemodel-3.2.6/lib/active_model/observing.rb:59:in `each'
from /usr/local/lib/ruby/gems/1.9.1/gems/activemodel-3.2.6/lib/active_model/observing.rb:59:in `instantiate_observers'
from /usr/local/lib/ruby/gems/1.9.1/gems/activerecord-3.2.6/lib/active_record/railtie.rb:117:in `block (2 levels) in <class:Railtie>'
from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.6/lib/active_support/lazy_load_hooks.rb:36:in `instance_eval'
from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.6/lib/active_support/lazy_load_hooks.rb:36:in `execute_hook'
from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.6/lib/active_support/lazy_load_hooks.rb:26:in `block in on_load'
from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.6/lib/active_support/lazy_load_hooks.rb:25:in `each'
from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.6/lib/active_support/lazy_load_hooks.rb:25:in `on_load'
from /usr/local/lib/ruby/gems/1.9.1/gems/activerecord-3.2.6/lib/active_record/railtie.rb:116:in `block in <class:Railtie>'
from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.6/lib/active_support/lazy_load_hooks.rb:34:in `call'
from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.6/lib/active_support/lazy_load_hooks.rb:34:in `execute_hook'
from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.6/lib/active_support/lazy_load_hooks.rb:43:in `block in run_load_hooks'
from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.6/lib/active_support/lazy_load_hooks.rb:42:in `each'
from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.6/lib/active_support/lazy_load_hooks.rb:42:in `run_load_hooks'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.6/lib/rails/application/finisher.rb:59:in `block in <module:Finisher>'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.6/lib/rails/initializable.rb:30:in `instance_exec'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.6/lib/rails/initializable.rb:30:in `run'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.6/lib/rails/initializable.rb:55:in `block in run_initializers'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.6/lib/rails/initializable.rb:54:in `each'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.6/lib/rails/initializable.rb:54:in `run_initializers'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.6/lib/rails/application.rb:136:in `initialize!'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.6/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /home/prasanna/Projects/Petcare/config/environment.rb:5:in `<top (required)>'
from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:251:in `require'
from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:251:in `block in require'
from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:236:in `load_dependency'
from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:251:in `require'
from /home/prasanna/Projects/Petcare/config.ru:4:in `block in <main>'
from /usr/local/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:51:in `instance_eval'
from /usr/local/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:51:in `initialize'
from /home/prasanna/Projects/Petcare/config.ru:1:in `new'
from /home/prasanna/Projects/Petcare/config.ru:1:in `<main>'
from /usr/local/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:40:in `eval'
from /usr/local/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:40:in `parse_file'
from /usr/local/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/server.rb:200:in `app'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.6/lib/rails/commands/server.rb:46:in `app'
from /usr/local/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/server.rb:301:in `wrapped_app'
from /usr/local/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/server.rb:252:in `start'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.6/lib/rails/commands/server.rb:70:in `start'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.6/lib/rails/commands.rb:55:in `block in <top (required)>'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.6/lib/rails/commands.rb:50:in `tap'
from /usr/local/lib/ruby/gems/1.9.1/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>'
environment.rb
# Load the rails application
require File.expand_path('../application', __FILE__)
# Initialize the rails application
Petcare::Application.initialize!
This is because Rails 3.x has problem with Ruby 1.9.1. Try updating your Ruby to 1.9.3.
Source: http://guides.rubyonrails.org/getting_started.html
Do you have any observers? If so make sure that they inherit from ActiveModel::Observer. If they are custom classes, make sure they include Singleton module.

Resources