I have made quite a few gem upgrades, to get my rails
version up to 4.2.3
. But when I try to access my app (running on a Pow server) I now get the following error:
Your Rack app raised an exception when Pow tried to run it.
NameError: uninitialized constant ActionController::Responder
~/.rvm/gems/ruby-2.0.0-p247/gems/inherited_resources-1.4.1/lib/inherited_resources/responder.rb:2:in `<module:InheritedResources>'
~/.rvm/gems/ruby-2.0.0-p247/gems/inherited_resources-1.4.1/lib/inherited_resources/responder.rb:1:in `<top (required)>'
~/.rvm/gems/ruby-2.0.0-p247/gems/inherited_resources-1.4.1/lib/inherited_resources.rb:4:in `<top (required)>'
~/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `require'
~/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `block (2 levels) in require'
~/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `each'
~/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `block in require'
~/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `each'
~/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `require'
~/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler.rb:132:in `require'
~/Projekter/myapp/config/application.rb:14:in `<top (required)>'
~/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:53:in `require'
~/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:53:in `require'
~/Projekter/myapp/config/environment.rb:3:in `<top (required)>'
~/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:53:in `require'
~/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:53:in `require'
~/Projekter/myapp/config.ru:3:in `block in <main>'
~/Library/Application Support/Pow/Versions/0.5.0/node_modules/nack/lib/nack/builder.rb:4:in `instance_eval'
~/Library/Application Support/Pow/Versions/0.5.0/node_modules/nack/lib/nack/builder.rb:4:in `initialize'
~/Projekter/myapp/config.ru:1:in `new'
~/Projekter/myapp/config.ru:1:in `<main>'
~/Library/Application Support/Pow/Versions/0.5.0/node_modules/nack/lib/nack/server.rb:51:in `eval'
~/Library/Application Support/Pow/Versions/0.5.0/node_modules/nack/lib/nack/server.rb:51:in `load_config'
~/Library/Application Support/Pow/Versions/0.5.0/node_modules/nack/lib/nack/server.rb:42:in `initialize'
~/Library/Application Support/Pow/Versions/0.5.0/node_modules/nack/lib/nack/server.rb:12:in `new'
~/Library/Application Support/Pow/Versions/0.5.0/node_modules/nack/lib/nack/server.rb:12:in `run'
~/Library/Application Support/Pow/Versions/0.5.0/node_modules/nack/bin/nack_worker:4:in `<main>'
Here is a shortened version of my Gemfile:
source 'https://rubygems.org'
gem 'rails', '4.2.3'
gem 'sass-rails', '>= 5.0.3'
gem 'sprockets-rails', '~> 2.3.2'
gem 'activeresource'
gem "jquery-rails"
gem "thin", ">= 1.5.0"
gem 'mongoid', '4.0.0', github: 'mongoid/mongoid'
gem 'moped', '2.0.2', github: 'mongoid/moped'
gem 'bson_ext'
gem "bson", '2.3.0'
gem "haml-rails", ">= 0.9.0"
gem 'bootstrap-sass', '~> 3.3.5'
gem "devise"
gem 'inherited_resources', '1.4.1'
gem 'i18n-js'
gem 'awesome_print'
gem 'therubyracer'
gem 'protected_attributes'
gem 'actionpack-action_caching'
gem 'rails-observers'
gem 'sinatra', :require => nil
gem 'nokogiri', '1.6.6.2'
gem 'rails-i18n', '~> 4.0.4'
gem 'capistrano', '2.15.5'
gem 'unicorn', '4.8.3'
gem 'i18n_country_select'
gem 'i18n-country-translations'
gem 'http_accept_language'
I have tried to search for other people who had this issue and solved it, but they do not seem to exist.
respond_with
has been moved in its own gem in Rails 4.2. You need to add the gem to your gemfile
gem 'responders', '~> 2.0'
See the Rails upgrade guide for other things you may have missed.