I migrated an old Ruby (1.8.7) and Rails (2.2.2) application to Ruby (1.9.3) and Rails (3.2.12) following all of these excellent references:
<a href="http://github.com/rails/rails_upgrade.git" rel="nofollow">Rails Upgrade Script</a><br />
<a href="http://blog.wolfman.com/articles/2010/12/17/upgrading-a-rails-2-dot-2-2-app-to-rails-3" rel="nofollow">Rails 3 Migration Blog</a><br />
<a href="http://gregmoreno.wordpress.com/2010/08/11/rails-3-upgrade-part-1-booting-the-application/" rel="nofollow">Booting the Rails 3 App</a><br />
I am able to start up the app's Rails server but when I access the app via the browser, and then BLAMMO! I get a server error:
<strong>!! Unexpected error while processing request: undefined method `session=' for ActionController::Base:Class</strong>
When I grep -r for "session =" I get:
According to a Google search for that error, it's an old issue from Rails 2 so I'm wondering If I missed something in the migration process or if this is something else. Thanks
Here is my terminal session activity:
<strong>Then, I hit the application from a browser and:</strong>
<a href="http://github.com/rails/rails_upgrade.git" rel="nofollow">Rails Upgrade Script</a><br />
<a href="http://blog.wolfman.com/articles/2010/12/17/upgrading-a-rails-2-dot-2-2-app-to-rails-3" rel="nofollow">Rails 3 Migration Blog</a><br />
<a href="http://gregmoreno.wordpress.com/2010/08/11/rails-3-upgrade-part-1-booting-the-application/" rel="nofollow">Booting the Rails 3 App</a><br />
I am able to start up the app's Rails server but when I access the app via the browser, and then BLAMMO! I get a server error:
<strong>!! Unexpected error while processing request: undefined method `session=' for ActionController::Base:Class</strong>
When I grep -r for "session =" I get:
Code:
/var/www/vendor_sandbox/config/application.rb: config.action_controller.session = {
/var/www/vendor_sandbox/config/environment.rb.rails2: config.action_controller.session = {
/var/www/vendor_sandbox/destroy/config/environment.rb: config.action_controller.session = {
/var/www/vendor_sandbox/generate/config/environment.rb: config.action_controller.session = {
According to a Google search for that error, it's an old issue from Rails 2 so I'm wondering If I missed something in the migration process or if this is something else. Thanks
Here is my terminal session activity:
Code:
[email protected]:/var/www/vendor_sandbox# ruby -v
ruby 1.9.3p385 (2013-02-06 revision 39114) [i686-linux]
[email protected]:/var/www/vendor_sandbox# rails --version
Rails 3.2.12
[email protected]:/var/www/vendor_sandbox# rails s
=> Booting Thin
=> Rails 3.2.12 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
>> Thin web server (v1.5.0 codename Knife)
>> Maximum connections set to 1024
>> Listening on 0.0.0.0:3000, CTRL+C to stop
<strong>Then, I hit the application from a browser and:</strong>
Code:
!! Unexpected error while processing request: undefined method `session=' for ActionController::Base:Class