Upgrading to rails 3.1 broke rails server, getting weird error - ruby-on-rails

After upgrading to rails 3.1 i am now getting this error after trying to run rails server:
/usr/local/rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.1.0/lib/active_support/whiny_nil.rb:48:in `method_missing': undefined method `context_class' for nil:NilClass (NoMethodError)
there are a bunch of other lines of failures too but i didn't want to paste all of them. here's my gemfile:
source 'http://rubygems.org'
gem 'rails', '3.1.0'
gem 'activeadmin'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'sqlite3', '1.3.4'
gem 'gravatar_image_tag', '0.1.0'
gem 'will_paginate', '3.0.pre2'
gem 'meta_search'
gem 'sass-rails'
group :development do
gem 'rspec-rails', '2.0.1'
gem 'annotate-models', '1.0.4'
gem 'ruby-debug19', :require => 'ruby-debug'
end
group :test do
gem 'rspec', '2.0.1'
gem 'webrat', '0.7.1'
gem 'autotest-fsevent', '0.2.4'
gem 'autotest-growl', '0.2.9'
gem 'autotest', '4.3.2'
gem 'autotest-rails-pure', '4.1.0'
gem 'spork', '0.8.4'
gem 'factory_girl_rails', '1.0'
end
here's the rest of the error:
from /usr/local/rvm/gems/ruby-1.9.2-p180/gems/activerecord-3.1.0/lib/active_record/connection_adapters/abstract/connection_specification.rb:68:in `establish_connection'
from /usr/local/rvm/gems/ruby-1.9.2-p180/gems/activerecord-3.1.0/lib/active_record/connection_adapters/abstract/connection_specification.rb:60:in `establish_connection'
from /usr/local/rvm/gems/ruby-1.9.2-p180/gems/activerecord-3.1.0/lib/active_record/connection_adapters/abstract/connection_specification.rb:55:in `establish_connection'
from /usr/local/rvm/gems/ruby-1.9.2-p180/gems/activerecord-3.1.0/lib/active_record/railtie.rb:69:in `block (2 levels) in <class:Railtie>'
from /usr/local/rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.1.0/lib/active_support/lazy_load_hooks.rb:36:in `instance_eval'
from /usr/local/rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.1.0/lib/active_support/lazy_load_hooks.rb:36:in `execute_hook'
from /usr/local/rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.1.0/lib/active_support/lazy_load_hooks.rb:26:in `on_load'
from /usr/local/rvm/gems/ruby-1.9.2-p180/gems/activerecord-3.1.0/lib/active_record/railtie.rb:67:in `block in <class:Railtie>'
from /usr/local/rvm/gems/ruby-1.9.2-p180/gems/railties-3.1.0/lib/rails/initializable.rb:25:in `instance_exec'
from /usr/local/rvm/gems/ruby-1.9.2-p180/gems/railties-3.1.0/lib/rails/initializable.rb:25:in `run'
from /usr/local/rvm/gems/ruby-1.9.2-p180/gems/railties-3.1.0/lib/rails/initializable.rb:50:in `block in run_initializers'
from /usr/local/rvm/gems/ruby-1.9.2-p180/gems/railties-3.1.0/lib/rails/initializable.rb:49:in `each'
from /usr/local/rvm/gems/ruby-1.9.2-p180/gems/railties-3.1.0/lib/rails/initializable.rb:49:in `run_initializers'
from /usr/local/rvm/gems/ruby-1.9.2-p180/gems/railties-3.1.0/lib/rails/application.rb:92:in `initialize!'
from /usr/local/rvm/gems/ruby-1.9.2-p180/gems/railties-3.1.0/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /Users/beatjunkie84/Desktop/ProjectX/config/environment.rb:5:in `<top (required)>'
from /usr/local/rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:240:in `require'
from /usr/local/rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:240:in `block in require'
from /usr/local/rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:223:in `block in load_dependency'
from /usr/local/rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:640:in `new_constants_in'
from /usr/local/rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:223:in `load_dependency'
from /usr/local/rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:240:in `require'
from /Users/beatjunkie84/Desktop/ProjectX/config.ru:4:in `block in <main>'
from /usr/local/rvm/gems/ruby-1.9.2-p180/gems/rack-1.3.4/lib/rack/builder.rb:51:in `instance_eval'
from /usr/local/rvm/gems/ruby-1.9.2-p180/gems/rack-1.3.4/lib/rack/builder.rb:51:in `initialize'
from /Users/beatjunkie84/Desktop/ProjectX/config.ru:1:in `new'
from /Users/beatjunkie84/Desktop/ProjectX/config.ru:1:in `<main>'
from /usr/local/rvm/gems/ruby-1.9.2-p180/gems/rack-1.3.4/lib/rack/builder.rb:40:in `eval'
from /usr/local/rvm/gems/ruby-1.9.2-p180/gems/rack-1.3.4/lib/rack/builder.rb:40:in `parse_file'
from /usr/local/rvm/gems/ruby-1.9.2-p180/gems/rack-1.3.4/lib/rack/server.rb:200:in `app'
from /usr/local/rvm/gems/ruby-1.9.2-p180/gems/railties-3.1.0/lib/rails/commands/server.rb:46:in `app'
from /usr/local/rvm/gems/ruby-1.9.2-p180/gems/rack-1.3.4/lib/rack/server.rb:301:in `wrapped_app'
from /usr/local/rvm/gems/ruby-1.9.2-p180/gems/rack-1.3.4/lib/rack/server.rb:252:in `start'
from /usr/local/rvm/gems/ruby-1.9.2-p180/gems/railties-3.1.0/lib/rails/commands/server.rb:70:in `start'
from /usr/local/rvm/gems/ruby-1.9.2-p180/gems/railties-3.1.0/lib/rails/commands.rb:54:in `block in <top (required)>'
from /usr/local/rvm/gems/ruby-1.9.2-p180/gems/railties-3.1.0/lib/rails/commands.rb:49:in `tap'
from /usr/local/rvm/gems/ruby-1.9.2-p180/gems/railties-3.1.0/lib/rails/commands.rb:49:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
what can i do ?

Try running rake rails:update. Overwrite your files when it asks, but then review the changes and make sure you keep the ones you want to keep (so in the end you are keeping a merged result of their changes and yours).
This is what I did, and it fixed a similar error to yours.

Related

No such file to load -- sendgrid-ruby (LoadError)

My rails application is working in production environment, but when I am trying to run it in the development environment its giving an error:
No such file to load -- sendgrid-ruby (LoadError)
/Users/adityashukla/.rvm/gems/ruby-1.9.3-p551-install/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:317:in `rescue in depend_on': No such file to load -- sendgrid-ruby (LoadError)
from /Users/adityashukla/.rvm/gems/ruby-1.9.3-p551-install/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:312:in `depend_on'
from /Users/adityashukla/.rvm/gems/ruby-1.9.3-p551-install/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:225:in `require_dependency'
from /Users/adityashukla/.rvm/gems/ruby-1.9.3-p551-install/gems/railties-3.2.16/lib/rails/engine.rb:444:in `block (2 levels) in eager_load!'
from /Users/adityashukla/.rvm/gems/ruby-1.9.3-p551-install/gems/railties-3.2.16/lib/rails/engine.rb:443:in `each'
from /Users/adityashukla/.rvm/gems/ruby-1.9.3-p551-install/gems/railties-3.2.16/lib/rails/engine.rb:443:in `block in eager_load!'
from /Users/adityashukla/.rvm/gems/ruby-1.9.3-p551-install/gems/railties-3.2.16/lib/rails/engine.rb:441:in `each'
from /Users/adityashukla/.rvm/gems/ruby-1.9.3-p551-install/gems/railties-3.2.16/lib/rails/engine.rb:441:in `eager_load!'
from /Users/adityashukla/.rvm/gems/ruby-1.9.3-p551-install/gems/railties-3.2.16/lib/rails/application/finisher.rb:53:in `block in <module:Finisher>'
from /Users/adityashukla/.rvm/gems/ruby-1.9.3-p551-install/gems/railties-3.2.16/lib/rails/initializable.rb:30:in `instance_exec'
from /Users/adityashukla/.rvm/gems/ruby-1.9.3-p551-install/gems/railties-3.2.16/lib/rails/initializable.rb:30:in `run'
from /Users/adityashukla/.rvm/gems/ruby-1.9.3-p551-install/gems/railties-3.2.16/lib/rails/initializable.rb:55:in `block in run_initializers'
from /Users/adityashukla/.rvm/gems/ruby-1.9.3-p551-install/gems/railties-3.2.16/lib/rails/initializable.rb:54:in `each'
from /Users/adityashukla/.rvm/gems/ruby-1.9.3-p551-install/gems/railties-3.2.16/lib/rails/initializable.rb:54:in `run_initializers'
from /Users/adityashukla/.rvm/gems/ruby-1.9.3-p551-install/gems/railties-3.2.16/lib/rails/application.rb:136:in `initialize!'
from /Users/adityashukla/.rvm/gems/ruby-1.9.3-p551-install/gems/railties-3.2.16/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /Users/adityashukla/Downloads/sprint4/config/environment.rb:5:in `<top (required)>'
from /Users/adityashukla/.rvm/gems/ruby-1.9.3-p551-install/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:251:in `require'
from /Users/adityashukla/.rvm/gems/ruby-1.9.3-p551-install/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:251:in `block in require'
from /Users/adityashukla/.rvm/gems/ruby-1.9.3-p551-install/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:236:in `load_dependency'
from /Users/adityashukla/.rvm/gems/ruby-1.9.3-p551-install/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:251:in `require'
from /Users/adityashukla/Downloads/sprint4/config.ru:3:in `block in <main>'
from /Users/adityashukla/.rvm/gems/ruby-1.9.3-p551-install/gems/rack-1.4.7/lib/rack/builder.rb:51:in `instance_eval'
from /Users/adityashukla/.rvm/gems/ruby-1.9.3-p551-install/gems/rack-1.4.7/lib/rack/builder.rb:51:in `initialize'
from /Users/adityashukla/Downloads/sprint4/config.ru:in `new'
from /Users/adityashukla/Downloads/sprint4/config.ru:in `<main>'
from /Users/adityashukla/.rvm/gems/ruby-1.9.3-p551-install/gems/rack-1.4.7/lib/rack/builder.rb:40:in `eval'
from /Users/adityashukla/.rvm/gems/ruby-1.9.3-p551-install/gems/rack-1.4.7/lib/rack/builder.rb:40:in `parse_file'
from /Users/adityashukla/.rvm/gems/ruby-1.9.3-p551-install/gems/rack-1.4.7/lib/rack/server.rb:200:in `app'
from /Users/adityashukla/.rvm/gems/ruby-1.9.3-p551-install/gems/railties-3.2.16/lib/rails/commands/server.rb:46:in `app'
from /Users/adityashukla/.rvm/gems/ruby-1.9.3-p551-install/gems/rack-1.4.7/lib/rack/server.rb:304:in `wrapped_app'
from /Users/adityashukla/.rvm/gems/ruby-1.9.3-p551-install/gems/rack-1.4.7/lib/rack/server.rb:254:in `start'
from /Users/adityashukla/.rvm/gems/ruby-1.9.3-p551-install/gems/railties-3.2.16/lib/rails/commands/server.rb:70:in `start'
from /Users/adityashukla/.rvm/gems/ruby-1.9.3-p551-install/gems/railties-3.2.16/lib/rails/commands.rb:55:in `block in <top (required)>'
from /Users/adityashukla/.rvm/gems/ruby-1.9.3-p551-install/gems/railties-3.2.16/lib/rails/commands.rb:50:in `tap'
from /Users/adityashukla/.rvm/gems/ruby-1.9.3-p551-install/gems/railties-3.2.16/lib/rails/commands.rb:50:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
My Gemfile :
source 'http://rubygems.org'
gem 'rails', '3.2.16'
gem 'mysql2', '~> 0.3.17'
group :assets do
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'
gem 'uglifier', '>= 1.0.3'
gem 'compass-rails'
gem 'therubyracer', :require => 'v8'
end
gem 'sendgrid_ruby', '~> 0.0.6'
gem 'mailgun', '~> 0.8', require: 'mailgun'
gem 'net-ssh', '~> 2.9', '>= 2.9.2'
gem 'jquery-rails'
Here is my application controller.rb file
class ApplicationController < ActionController::Base
require 'mailgun'
require 'sendgrid-ruby'
Kindly help, Thanks in advance.
Your Gemfile specified gem sendgrid_ruby, but the gem name according to https://github.com/sendgrid/sendgrid-ruby/blob/master/sendgrid-ruby.gemspec is sendgrid-ruby (that is, with a hyphen, not an underscore).
Could this be the problem? Maybe try changing the Gemfile's entry to sendgrid-ruby?
I just tried gem installing both -- they both install different gems.
I don't know why it worked in the production environment. Is it a different machine or Ruby version?

Error while trying angularjs with rails:undefined method `register_engine' for nil:NilClass (NoMethodError)

I am new to both angularjs and rails.
In my new company we have to use ruby on rails with angularjs. After takingup tutorials for angularjs and ruby on rails separately, I was trying how the both would work together using the following link:
https://thinkster.io/angular-rails#generating-activerecord-models
After following all steps till the topic "Integrating the Front-end with the Asset Pipeline" (including steps in this topic) when I run rails s command the following error comes:
=> Booting WEBrick
=> Rails 4.2.5 application starting in development on http://localhost:3000
=> Run `rails server -h` for more startup options
=> Ctrl-C to shutdown server
Exiting
**/home/cb/.rvm/gems/ruby-2.2.3#flapper-news/gems/angular-rails-templates-0.1.4/lib/angular-rails-templates/engine.rb:49:in `block (2 levels) in <class:Engine>': undefined method `register_engine' for nil:NilClass (NoMethodError)**
from /home/cb/.rvm/gems/ruby-2.2.3#flapper-news/gems/angular-rails-templates-0.1.4/lib/angular-rails-templates/engine.rb:39:in `each'
from /home/cb/.rvm/gems/ruby-2.2.3#flapper-news/gems/angular-rails-templates-0.1.4/lib/angular-rails-templates/engine.rb:39:in `block in <class:Engine>'
from /home/cb/.rvm/gems/ruby-2.2.3#flapper-news/gems/railties-4.2.5/lib/rails/initializable.rb:30:in `instance_exec'
from /home/cb/.rvm/gems/ruby-2.2.3#flapper-news/gems/railties-4.2.5/lib/rails/initializable.rb:30:in `run'
from /home/cb/.rvm/gems/ruby-2.2.3#flapper-news/gems/railties-4.2.5/lib/rails/initializable.rb:55:in `block in run_initializers'
from /home/cb/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/tsort.rb:226:in `block in tsort_each'
from /home/cb/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/tsort.rb:348:in `block (2 levels) in each_strongly_connected_component'
from /home/cb/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/tsort.rb:429:in `each_strongly_connected_component_from'
from /home/cb/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/tsort.rb:347:in `block in each_strongly_connected_component'
from /home/cb/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/tsort.rb:345:in `each'
from /home/cb/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/tsort.rb:345:in `call'
from /home/cb/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/tsort.rb:345:in `each_strongly_connected_component'
from /home/cb/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/tsort.rb:224:in `tsort_each'
from /home/cb/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/tsort.rb:203:in `tsort_each'
from /home/cb/.rvm/gems/ruby-2.2.3#flapper-news/gems/railties-4.2.5/lib/rails/initializable.rb:54:in `run_initializers'
from /home/cb/.rvm/gems/ruby-2.2.3#flapper-news/gems/railties-4.2.5/lib/rails/application.rb:352:in `initialize!'
from /home/cb/flapper-news/config/environment.rb:5:in `<top (required)>'
from /home/cb/flapper-news/config.ru:3:in `require'
from /home/cb/flapper-news/config.ru:3:in `block in <main>'
from /home/cb/.rvm/gems/ruby-2.2.3#flapper-news/gems/rack-1.6.4/lib/rack/builder.rb:55:in `instance_eval'
from /home/cb/.rvm/gems/ruby-2.2.3#flapper-news/gems/rack-1.6.4/lib/rack/builder.rb:55:in `initialize'
from /home/cb/flapper-news/config.ru:in `new'
from /home/cb/flapper-news/config.ru:in `<main>'
from /home/cb/.rvm/gems/ruby-2.2.3#flapper-news/gems/rack-1.6.4/lib/rack/builder.rb:49:in `eval'
from /home/cb/.rvm/gems/ruby-2.2.3#flapper-news/gems/rack-1.6.4/lib/rack/builder.rb:49:in `new_from_string'
from /home/cb/.rvm/gems/ruby-2.2.3#flapper-news/gems/rack-1.6.4/lib/rack/builder.rb:40:in `parse_file'
from /home/cb/.rvm/gems/ruby-2.2.3#flapper-news/gems/rack-1.6.4/lib/rack/server.rb:299:in `build_app_and_options_from_config'
from /home/cb/.rvm/gems/ruby-2.2.3#flapper-news/gems/rack-1.6.4/lib/rack/server.rb:208:in `app'
from /home/cb/.rvm/gems/ruby-2.2.3#flapper-news/gems/railties-4.2.5/lib/rails/commands/server.rb:61:in `app'
from /home/cb/.rvm/gems/ruby-2.2.3#flapper-news/gems/rack-1.6.4/lib/rack/server.rb:336:in `wrapped_app'
from /home/cb/.rvm/gems/ruby-2.2.3#flapper-news/gems/railties-4.2.5/lib/rails/commands/server.rb:139:in `log_to_stdout'
from /home/cb/.rvm/gems/ruby-2.2.3#flapper-news/gems/railties-4.2.5/lib/rails/commands/server.rb:78:in `start'
from /home/cb/.rvm/gems/ruby-2.2.3#flapper-news/gems/railties-4.2.5/lib/rails/commands/commands_tasks.rb:80:in `block in server'
from /home/cb/.rvm/gems/ruby-2.2.3#flapper-news/gems/railties-4.2.5/lib/rails/commands/commands_tasks.rb:75:in `tap'
from /home/cb/.rvm/gems/ruby-2.2.3#flapper-news/gems/railties-4.2.5/lib/rails/commands/commands_tasks.rb:75:in `server'
from /home/cb/.rvm/gems/ruby-2.2.3#flapper-news/gems/railties-4.2.5/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
from /home/cb/.rvm/gems/ruby-2.2.3#flapper-news/gems/railties-4.2.5/lib/rails/commands.rb:17:in `<top (required)>'
from /home/cb/flapper-news/bin/rails:9:in `require'
from /home/cb/flapper-news/bin/rails:9:in `<top (required)>'
from /home/cb/.rvm/gems/ruby-2.2.3#flapper-news/gems/spring-1.6.0/lib/spring/client/rails.rb:28:in `load'
from /home/cb/.rvm/gems/ruby-2.2.3#flapper-news/gems/spring-1.6.0/lib/spring/client/rails.rb:28:in `call'
from /home/cb/.rvm/gems/ruby-2.2.3#flapper-news/gems/spring-1.6.0/lib/spring/client/command.rb:7:in `call'
from /home/cb/.rvm/gems/ruby-2.2.3#flapper-news/gems/spring-1.6.0/lib/spring/client.rb:28:in `run'
from /home/cb/.rvm/gems/ruby-2.2.3#flapper-news/gems/spring-1.6.0/bin/spring:51:in `<top (required)>'
from /home/cb/.rvm/gems/ruby-2.2.3#flapper-news/gems/spring-1.6.0/lib/spring/binstub.rb:11:in `load'
from /home/cb/.rvm/gems/ruby-2.2.3#flapper-news/gems/spring-1.6.0/lib/spring/binstub.rb:11:in `<top (required)>'
from /home/cb/flapper-news/bin/spring:13:in `require'
from /home/cb/flapper-news/bin/spring:13:in `<top (required)>'
from bin/rails:3:in `load'
from bin/rails:3:in `<main>'
Using rails version 4.2.5
Following is a snippet of the Gemfile:
source 'https://rubygems.org'
gem 'angular-rails-templates'
gem 'rails', '4.2.5'
gem 'sqlite3'
gem 'sass-rails', '~> 5.0'
gem 'uglifier', '>= 1.3.0'
gem 'jbuilder', '~> 2.0'
gem 'sdoc', '~> 0.4.0', group: :doc
group :development, :test do
gem 'byebug'
end
group :development do
gem 'web-console', '~> 2.0'
gem 'spring'
end
I had the same issue. It was a problem related with 'sprockets'. Try to install an older version adding gem 'sprockets', '2.12.3' to your gem file and then update your gems by running bundle update.
It worked for me.

cannot load such file -- activerecord (LoadError)

I'm trying to upgrade a very old app from Rails 2.3.12 to Rails 3.0.0 (as a starting point to getting it to Rails 4). I've been slowly going through and fixing anything that has broken since the upgrade by removing old gems etc.
I've got stuck on a problem that I can't seem to pin point or fix.
I'm running Rails3, Ruby1.9.3
When I try to run the rails server I get the following error:
=> Booting WEBrick
=> Rails 3.0.0 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Exiting
/home/camillavk/.rvm/gems/ruby-1.9.3-p551#rails3/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `require': cannot load such file -- activerecord (LoadError)
from /home/camillavk/.rvm/gems/ruby-1.9.3-p551#rails3/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `block in require'
from /home/camillavk/.rvm/gems/ruby-1.9.3-p551#rails3/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:225:in `block in load_dependency'
from /home/camillavk/.rvm/gems/ruby-1.9.3-p551#rails3/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:591:in `new_constants_in'
from /home/camillavk/.rvm/gems/ruby-1.9.3-p551#rails3/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:225:in `load_dependency'
from /home/camillavk/.rvm/gems/ruby-1.9.3-p551#rails3/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `require'
from /home/camillavk/Documents/Work/Saild/saild/vendor/plugins/acts_as_commentable/lib/commentable_methods.rb:1:in `<top (required)>'
from /home/camillavk/.rvm/gems/ruby-1.9.3-p551#rails3/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `require'
from /home/camillavk/.rvm/gems/ruby-1.9.3-p551#rails3/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `block in require'
from /home/camillavk/.rvm/gems/ruby-1.9.3-p551#rails3/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:225:in `block in load_dependency'
from /home/camillavk/.rvm/gems/ruby-1.9.3-p551#rails3/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:591:in `new_constants_in'
from /home/camillavk/.rvm/gems/ruby-1.9.3-p551#rails3/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:225:in `load_dependency'
from /home/camillavk/.rvm/gems/ruby-1.9.3-p551#rails3/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `require'
from /home/camillavk/Documents/Work/Saild/saild/vendor/plugins/acts_as_commentable/lib/acts_as_commentable.rb:1:in `<top (required)>'
from /home/camillavk/.rvm/gems/ruby-1.9.3-p551#rails3/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `require'
from /home/camillavk/.rvm/gems/ruby-1.9.3-p551#rails3/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `block in require'
from /home/camillavk/.rvm/gems/ruby-1.9.3-p551#rails3/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:225:in `block in load_dependency'
from /home/camillavk/.rvm/gems/ruby-1.9.3-p551#rails3/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:591:in `new_constants_in'
from /home/camillavk/.rvm/gems/ruby-1.9.3-p551#rails3/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:225:in `load_dependency'
from /home/camillavk/.rvm/gems/ruby-1.9.3-p551#rails3/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `require'
from /home/camillavk/Documents/Work/Saild/saild/vendor/plugins/acts_as_commentable/rails/init.rb:1:in `block in <class:Plugin>'
from /home/camillavk/.rvm/gems/ruby-1.9.3-p551#rails3/gems/railties-3.0.0/lib/rails/plugin.rb:81:in `eval'
from /home/camillavk/.rvm/gems/ruby-1.9.3-p551#rails3/gems/railties-3.0.0/lib/rails/plugin.rb:81:in `block in <class:Plugin>'
from /home/camillavk/.rvm/gems/ruby-1.9.3-p551#rails3/gems/railties-3.0.0/lib/rails/initializable.rb:25:in `instance_exec'
from /home/camillavk/.rvm/gems/ruby-1.9.3-p551#rails3/gems/railties-3.0.0/lib/rails/initializable.rb:25:in `run'
from /home/camillavk/.rvm/gems/ruby-1.9.3-p551#rails3/gems/railties-3.0.0/lib/rails/initializable.rb:50:in `block in run_initializers'
from /home/camillavk/.rvm/gems/ruby-1.9.3-p551#rails3/gems/railties-3.0.0/lib/rails/initializable.rb:49:in `each'
from /home/camillavk/.rvm/gems/ruby-1.9.3-p551#rails3/gems/railties-3.0.0/lib/rails/initializable.rb:49:in `run_initializers'
from /home/camillavk/.rvm/gems/ruby-1.9.3-p551#rails3/gems/railties-3.0.0/lib/rails/application.rb:134:in `initialize!'
from /home/camillavk/.rvm/gems/ruby-1.9.3-p551#rails3/gems/railties-3.0.0/lib/rails/application.rb:77:in `method_missing'
from /home/camillavk/Documents/Work/Saild/saild/config/environment.rb:7:in `<top (required)>'
from /home/camillavk/.rvm/gems/ruby-1.9.3-p551#rails3/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `require'
from /home/camillavk/.rvm/gems/ruby-1.9.3-p551#rails3/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `block in require'
from /home/camillavk/.rvm/gems/ruby-1.9.3-p551#rails3/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:225:in `block in load_dependency'
from /home/camillavk/.rvm/gems/ruby-1.9.3-p551#rails3/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:591:in `new_constants_in'
from /home/camillavk/.rvm/gems/ruby-1.9.3-p551#rails3/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:225:in `load_dependency'
from /home/camillavk/.rvm/gems/ruby-1.9.3-p551#rails3/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `require'
from /home/camillavk/Documents/Work/Saild/saild/config.ru:3:in `block in <main>'
from /home/camillavk/.rvm/gems/ruby-1.9.3-p551#rails3/gems/rack-1.2.8/lib/rack/builder.rb:46:in `instance_eval'
from /home/camillavk/.rvm/gems/ruby-1.9.3-p551#rails3/gems/rack-1.2.8/lib/rack/builder.rb:46:in `initialize'
from /home/camillavk/Documents/Work/Saild/saild/config.ru:1:in `new'
from /home/camillavk/Documents/Work/Saild/saild/config.ru:1:in `<main>'
from /home/camillavk/.rvm/gems/ruby-1.9.3-p551#rails3/gems/rack-1.2.8/lib/rack/builder.rb:35:in `eval'
from /home/camillavk/.rvm/gems/ruby-1.9.3-p551#rails3/gems/rack-1.2.8/lib/rack/builder.rb:35:in `parse_file'
from /home/camillavk/.rvm/gems/ruby-1.9.3-p551#rails3/gems/rack-1.2.8/lib/rack/server.rb:162:in `app'
from /home/camillavk/.rvm/gems/ruby-1.9.3-p551#rails3/gems/rack-1.2.8/lib/rack/server.rb:253:in `wrapped_app'
from /home/camillavk/.rvm/gems/ruby-1.9.3-p551#rails3/gems/rack-1.2.8/lib/rack/server.rb:204:in `start'
from /home/camillavk/.rvm/gems/ruby-1.9.3-p551#rails3/gems/railties-3.0.0/lib/rails/commands/server.rb:65:in `start'
from /home/camillavk/.rvm/gems/ruby-1.9.3-p551#rails3/gems/railties-3.0.0/lib/rails/commands.rb:30:in `block in <top (required)>'
from /home/camillavk/.rvm/gems/ruby-1.9.3-p551#rails3/gems/railties-3.0.0/lib/rails/commands.rb:27:in `tap'
from /home/camillavk/.rvm/gems/ruby-1.9.3-p551#rails3/gems/railties-3.0.0/lib/rails/commands.rb:27:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
My Gemfile looks like this:
source 'https://rubygems.org'
gem "rails", "3.0.0"
gem "airbrake"
gem "aws-s3"
gem "bj"
gem "bundler", "~> 1.0.0"
gem "calendar_date_select", "1.15"
gem "cancan", "1.2.0"
gem "carmen"
gem 'comma', '0.4.1'
gem 'exifr'
# factory_girl 1.2.4 wasn't working with Rails 3 - consider an upgrade to factory_girl_rails?
# gem "factory_girl", "1.2.4"
gem 'fastercsv'
gem "geokit"
gem "haml"
gem "hpricot"
gem 'hoptoad_notifier'
gem "jrails"
gem "libxml-ruby", "2.4.0"
gem "memcached", "~> 1.8.0"
#memcached no longer works?
gem 'dalli'
# Not sure why we have this if we're using SQLite3
gem "mysql2", "~> 0.2.6"
#TODO: changed by almazom
gem "rake", "0.8.4"
gem 'recurly'
gem "rdoc"
gem "rmagick"
gem "rspreedly"
gem "rubyzip"
gem 'sass'
#need to use simplecov when upgrading to ruby 2 as rcov doesn't work
gem "simplecov"
gem 'sqlite3'
# tmail no longer included in rails 3?
gem 'tmail'
gem "will_paginate", "2.3.16"
gem 'yaml_db'
group :development, :test do
gem 'test-unit', '1.2.3'
gem 'rspec', '1.3.2'
gem 'rspec-rails', '~> 1.3.4'
end
group :test do
gem 'capybara', '0.3.5'
gem 'cucumber', '1.1.2'
gem 'cucumber-rails', :git => "git://github.com/RKelln/cucumber-rails.git", :branch => "0.3.2-capybara-fix"
gem 'database_cleaner'
end
Has anyone else encountered this problem before when upgrading to Rails 3? I can't find anything on Google about it....
Or does anyone have a suggestion on how I can find/fix the issue?
Many thanks in advance!
Let's take a look at your stack trace. Stack traces are read top to bottom. If you have function A calling function B calling function C, where an error happens, the stack trace shows
C
B
A
We can see that the first lines all come from Rails itself:
/home/camillavk/.rvm/gems/ruby-1.9.3-p551#rails3/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `require': cannot load such file -- activerecord (LoadError)
from /home/camillavk/.rvm/gems/ruby-1.9.3-p551#rails3/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `block in require'
from /home/camillavk/.rvm/gems/ruby-1.9.3-p551#rails3/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:225:in `block in load_dependency'
from /home/camillavk/.rvm/gems/ruby-1.9.3-p551#rails3/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:591:in `new_constants_in'
from /home/camillavk/.rvm/gems/ruby-1.9.3-p551#rails3/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:225:in `load_dependency'
from /home/camillavk/.rvm/gems/ruby-1.9.3-p551#rails3/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `require'
Since it's usually unlikely that Rails itself is the culprit, we look for the first line that comes from some place else — either your own code, or a third-party library.
The next line is just that:
from /home/camillavk/Documents/Work/Saild/saild/vendor/plugins/acts_as_commentable/lib/commentable_methods.rb:1:in `<top (required)>'
We see that it's code at vendor/plugins, making it an old, Rails 2.3-style plugin. They were deprecated in Rails 3, and completely stopped working in Rails 4. They were replaced by "Gem plugins" that are added through your Gemfile and Bundler, instead of vendor/plugins.
So acts_as_commentable is a good candidate as the culprit. The Github project page shows a version especially for Rails 3, so removing the old plugin and replacing it with that Gem gives you a good shot at fixing this issue.

Omniauth / Rails Issue - Can't start server

I'm trying to follow along with Railscasts #235 (Omniauth in a rails app).
Having some trouble with the Omniauth gem in Rails (v3.2). When I install the gem in my Gemfile, and specify the following in omniauth.rb (in config/initializers/):
Rails.application.config.middleware.use OmniAuth::Builder do
provider :twitter, '...', '...'
end
I can't seem to start my server - I get the following error:
/Users/tarunsachdeva/.rvm/gems/ruby-1.9.3-p0/gems/omniauth-1.1.0/lib/omniauth/builder.rb:38:in `rescue in provider': Could not find matching strategy for :twitter. You may need to install an additional gem (such as omniauth-twitter). (LoadError)
I could include the omniauth-twitter gem (the server starts with that), but I don't know why this wouldn't work without it. When I forked the repo for the railscast, everything worked fine, so not sure why this is happening. I thought it was because I have the omniauth-twitter gem installed (although not being used in the bundle), and I uninstalled it but that didn't work.
Full Gemfile:
source 'https://rubygems.org'
gem 'rails', '3.2.2'
gem 'omniauth'
gem 'jquery-rails'
gem 'bootstrap-sass'
gem 'bcrypt-ruby'
gem 'redcarpet'
group :development, :test do
gem 'pg', '0.12.2'
gem 'rspec-rails', '2.9.0'
gem 'annotate'
end
group :assets do
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'
gem 'uglifier', '>= 1.0.3'
end
group :test do
gem 'capybara', '1.1.2'
gem 'factory_girl_rails', '1.4.0'
end
group :production do
gem 'pg', '0.12.2'
end
Full stack trace below:
/Users/tarunsachdeva/.rvm/gems/ruby-1.9.3-p0/gems/omniauth-1.1.0/lib/omniauth/builder.rb:38:in `rescue in provider': Could not find matching strategy for :twitter. You may need to install an additional gem (such as omniauth-twitter). (LoadError)
from /Users/tarunsachdeva/.rvm/gems/ruby-1.9.3-p0/gems/omniauth-1.1.0/lib/omniauth/builder.rb:35:in `provider'
from /Users/tarunsachdeva/Development/rails/workbench/config/initializers/omniauth.rb:2:in `block in <top (required)>'
from /Users/tarunsachdeva/.rvm/gems/ruby-1.9.3-p0/gems/rack-1.4.1/lib/rack/builder.rb:51:in `instance_eval'
from /Users/tarunsachdeva/.rvm/gems/ruby-1.9.3-p0/gems/rack-1.4.1/lib/rack/builder.rb:51:in `initialize'
from /Users/tarunsachdeva/.rvm/gems/ruby-1.9.3-p0/gems/omniauth-1.1.0/lib/omniauth/builder.rb:7:in `initialize'
from /Users/tarunsachdeva/.rvm/gems/ruby-1.9.3-p0/gems/actionpack-3.2.2/lib/action_dispatch/middleware/stack.rb:43:in `new'
from /Users/tarunsachdeva/.rvm/gems/ruby-1.9.3-p0/gems/actionpack-3.2.2/lib/action_dispatch/middleware/stack.rb:43:in `build'
from /Users/tarunsachdeva/.rvm/gems/ruby-1.9.3-p0/gems/actionpack-3.2.2/lib/action_dispatch/middleware/stack.rb:113:in `block in build'
from /Users/tarunsachdeva/.rvm/gems/ruby-1.9.3-p0/gems/actionpack-3.2.2/lib/action_dispatch/middleware/stack.rb:113:in `each'
from /Users/tarunsachdeva/.rvm/gems/ruby-1.9.3-p0/gems/actionpack-3.2.2/lib/action_dispatch/middleware/stack.rb:113:in `inject'
from /Users/tarunsachdeva/.rvm/gems/ruby-1.9.3-p0/gems/actionpack-3.2.2/lib/action_dispatch/middleware/stack.rb:113:in `build'
from /Users/tarunsachdeva/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.2/lib/rails/engine.rb:470:in `app'
from /Users/tarunsachdeva/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.2/lib/rails/application/finisher.rb:31:in `block in <module:Finisher>'
from /Users/tarunsachdeva/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.2/lib/rails/initializable.rb:30:in `instance_exec'
from /Users/tarunsachdeva/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.2/lib/rails/initializable.rb:30:in `run'
from /Users/tarunsachdeva/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.2/lib/rails/initializable.rb:55:in `block in run_initializers'
from /Users/tarunsachdeva/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.2/lib/rails/initializable.rb:54:in `each'
from /Users/tarunsachdeva/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.2/lib/rails/initializable.rb:54:in `run_initializers'
from /Users/tarunsachdeva/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.2/lib/rails/application.rb:136:in `initialize!'
from /Users/tarunsachdeva/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.2/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /Users/tarunsachdeva/Development/rails/workbench/config/environment.rb:5:in `<top (required)>'
from /Users/tarunsachdeva/Development/rails/workbench/config.ru:4:in `require'
from /Users/tarunsachdeva/Development/rails/workbench/config.ru:4:in `block in <main>'
from /Users/tarunsachdeva/.rvm/gems/ruby-1.9.3-p0/gems/rack-1.4.1/lib/rack/builder.rb:51:in `instance_eval'
from /Users/tarunsachdeva/.rvm/gems/ruby-1.9.3-p0/gems/rack-1.4.1/lib/rack/builder.rb:51:in `initialize'
from /Users/tarunsachdeva/Development/rails/workbench/config.ru:1:in `new'
from /Users/tarunsachdeva/Development/rails/workbench/config.ru:1:in `<main>'
from /Users/tarunsachdeva/.rvm/gems/ruby-1.9.3-p0/gems/rack-1.4.1/lib/rack/builder.rb:40:in `eval'
from /Users/tarunsachdeva/.rvm/gems/ruby-1.9.3-p0/gems/rack-1.4.1/lib/rack/builder.rb:40:in `parse_file'
from /Users/tarunsachdeva/.rvm/gems/ruby-1.9.3-p0/gems/rack-1.4.1/lib/rack/server.rb:200:in `app'
from /Users/tarunsachdeva/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.2/lib/rails/commands/server.rb:46:in `app'
from /Users/tarunsachdeva/.rvm/gems/ruby-1.9.3-p0/gems/rack-1.4.1/lib/rack/server.rb:301:in `wrapped_app'
from /Users/tarunsachdeva/.rvm/gems/ruby-1.9.3-p0/gems/rack-1.4.1/lib/rack/server.rb:252:in `start'
from /Users/tarunsachdeva/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.2/lib/rails/commands/server.rb:70:in `start'
from /Users/tarunsachdeva/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.2/lib/rails/commands.rb:55:in `block in <top (required)>'
from /Users/tarunsachdeva/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.2/lib/rails/commands.rb:50:in `tap'
from /Users/tarunsachdeva/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.2/lib/rails/commands.rb:50:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
Any and all help is appreciated.
Read error message. You need add omniauth-twitter gem to Gemfile.
I'm fashionably late to the party here but I think you were being asked for omniauth-twitter because you were using the latest version of Omniauth > 1 and not the ~> 0.3.0 version as in the Railscasts.
But you've probably already figured that out ;)

Why is my Rails Thin webserver throwing a bundler error ? - Rails 3

Here is my Gemfile:
source 'http://rubygems.org'
gem 'rails', '3.0.0'
gem 'sqlite3-ruby', :require => 'sqlite3'
gem 'will_paginate', '3.0.pre2'
gem 'paperclip', :git => 'git://github.com/thoughtbot/paperclip.git'
gem 'mime-types', :require => 'mime/types'
gem 'rails3-generators'
gem 'devise', '~> 1.1.3'
gem 'devise_invitable', '~> 0.3.4'
gem 'declarative_authorization', :git => 'git://github.com/stffn/declarative_authorization.git'
gem 'aasm'
gem 'braintree'
gem 'thumbs_up'
gem 'best_in_place'
gem "friendly_id", "~> 3.2"
gem 'aws-s3'
group :development do
# Server
gem 'thin'
#gem 'rspec-rails', '2.0.1'
gem 'annotate-models', '1.0.4'
#gem 'rails-erd'
gem 'annotate'
gem 'faker', '0.3.1'
gem 'ruby_parser'
end
group :test do
gem 'rspec', '2.0.1'
gem 'webrat', '0.7.1'
#gem 'spork', '0.8.4'
#gem 'factory_girl_rails', '1.0'
end
Here is the error I am getting:
$ thin start
>> Using rack adapter
/.rvm/gems/ruby-1.9.2-p0/gems/bundler-1.0.7/lib/bundler.rb:199: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040766
/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `require': no such file to load -- rails_admin/application_controller (LoadError)
/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `block in require'
/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:225:in `block in load_dependency'
/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:591:in `new_constants_in'
/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:225:in `load_dependency'
/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `require'
/myapp/config/initializers/rails_admin.rb:1:in `<top (required)>'
/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:235:in `load'
/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:235:in `block in load'
/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:225:in `block in load_dependency'
/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:591:in `new_constants_in'
/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:225:in `load_dependency'
/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:235:in `load'
/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/lib/rails/engine.rb:201:in `block (2 levels) in <class:Engine>'
/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/lib/rails/engine.rb:200:in `each'
/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/lib/rails/engine.rb:200:in `block in <class:Engine>'
/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/lib/rails/initializable.rb:25:in `instance_exec'
/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/lib/rails/initializable.rb:25:in `run'
/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/lib/rails/initializable.rb:50:in `block in run_initializers'
/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/lib/rails/initializable.rb:49:in `each'
/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/lib/rails/initializable.rb:49:in `run_initializers'
/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/lib/rails/application.rb:134:in `initialize!'
/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/lib/rails/application.rb:77:in `method_missing'
/myapp/config/environment.rb:5:in `<top (required)>'
from <internal:lib/rubygems/custom_require>:29:in `require'
from <internal:lib/rubygems/custom_require>:29:in `require'
myapp/config.ru:3:in `block in <main>'
/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.2/lib/rack/builder.rb:46:in `instance_eval'
/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.2/lib/rack/builder.rb:46:in `initialize'
myapp/config.ru:1:in `new'
myapp/config.ru:1:in `<main>'
/.rvm/gems/ruby-1.9.2-p0/gems/thin-1.2.11/lib/rack/adapter/loader.rb:36:in `eval'
/.rvm/gems/ruby-1.9.2-p0/gems/thin-1.2.11/lib/rack/adapter/loader.rb:36:in `load'
/.rvm/gems/ruby-1.9.2-p0/gems/thin-1.2.11/lib/rack/adapter/loader.rb:45:in `for'
/.rvm/gems/ruby-1.9.2-p0/gems/thin-1.2.11/lib/thin/controllers/controller.rb:169:in `load_adapter'
/.rvm/gems/ruby-1.9.2-p0/gems/thin-1.2.11/lib/thin/controllers/controller.rb:73:in `start'
/.rvm/gems/ruby-1.9.2-p0/gems/thin-1.2.11/lib/thin/runner.rb:185:in `run_command'
/.rvm/gems/ruby-1.9.2-p0/gems/thin-1.2.11/lib/thin/runner.rb:151:in `run!'
/.rvm/gems/ruby-1.9.2-p0/gems/thin-1.2.11/bin/thin:6:in `<top (required)>'
/.rvm/gems/ruby-1.9.2-p0/bin/thin:19:in `load'
/.rvm/gems/ruby-1.9.2-p0/bin/thin:19:in `<main>'
I used to have rails_admin installed, but I commented it out and ran bundle update and bundle install.
Still getting this error though.
Delete config/initializers/rails_admin.rb, relax and float down stream.

Resources