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 -
Comments and changes to this ticket
-
macournoyer July 29th, 2009 @ 04:25 PM
- State changed from new to resolved
(from [dacb5df8bfe9aad74bc79db640b3ae4c2683db27]) Fix uninitialized constant ActionController::Dispatcher error with Rails 1.2.3 [Chris Anderton] [#103 state:resolved] http://github.com/macournoyer/thin/commit/dacb5df8bfe9aad74bc79db64...
-
macournoyer July 29th, 2009 @ 04:26 PM
Thanks for the patch Chris and sorry for the late reply. It's now on master and will be part of the next release.
-
ronin-11320 (at lighthouseapp) July 29th, 2009 @ 06:26 PM
No worries, happy to help and also for Thin itself!
-
ronin-11320 (at lighthouseapp) July 29th, 2009 @ 06:26 PM
D'oh - meant to say "thanks for Thin itself"!
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.
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
- 103 uninitialized constant ActionController::Dispatcher (NameError) with Rails 1.2.3, 1.2.6 (from [dacb5df8bfe9aad74bc79db640b3ae4c2683db27]) Fix uni...