#103 ✓resolved
ronin-11320 (at lighthouseapp)

uninitialized constant ActionController::Dispatcher (NameError) with Rails 1.2.3, 1.2.6

Reported by ronin-11320 (at lighthouseapp) | July 12th, 2009 @ 06:47 AM | in Future

Whilst migrating an old application for a client then I stumbled across a problem getting it to work with Thin - the application is still running Rails 1.2.6 and when combined with Thin it was not starting, giving:

/var/rails/older/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:266:in load_missing_constant': uninitialized constant ActionController::Dispatcher (NameError)

I seem to remember Dispatcher (in 1.2.x days) was moved to ActionController::Dispatcher, so it fails to start as it can't perform the check on ActionController::Dispatcher in Rails 1.2.x applications. I've modified the rails rack adapter to check if ActionController::Dispatcher is defined and this does the trick and allows Thin to load the application -

http://gist.github.com/145594

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

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

People watching this ticket

Referenced by

Pages