This project is archived and is in readonly mode.

#5273 ✓invalid
Harm-Jan Blok

config.ru not updated when upgrading from 3.0.0.beta4 to 3.0.0.rc

Reported by Harm-Jan Blok | August 2nd, 2010 @ 11:07 AM

When upgrading a rails application from version 3.0.0.beta4 to 3.0.0.rc, the config.ru file is not updated when running rake rails:update.

The line run MyApplication::Application isn't changed to run Config::Application, which results in an NameError being raised when you start the rails server.

/Users/hj/Documents/reproduce/my_application/config.ru:4: uninitialized constant MyApplication (NameError)
    from /Users/hj/.rvm/gems/ruby-1.8.7-p174/gems/rack-1.2.1/lib/rack/builder.rb:46:in `instance_eval'
    from /Users/hj/.rvm/gems/ruby-1.8.7-p174/gems/rack-1.2.1/lib/rack/builder.rb:46:in `initialize'
    from /Users/hj/Documents/reproduce/my_application/config.ru:1:in `new'
    from /Users/hj/Documents/reproduce/my_application/config.ru:1

The file config.ru should be change to:

# This file is used by Rack-based servers to start the application.

require ::File.expand_path('../config/environment',  __FILE__)
run Config::Application

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Pages