Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

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

#103

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

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

State: resolved
Milestone: Future
Assigned to: macournoyer macournoyer

Activity

  1. macournoyer
    macournoyer
    • State changed from new to resolved

    July 29th, 2009 @ 04:25 PM

  2. macournoyer
    macournoyer

    Thanks for the patch Chris and sorry for the late reply. It's now on master and will be part of the next release.

    July 29th, 2009 @ 04:26 PM

  3. ronin-11320 (at lighthouseapp)
    ronin-11320 (at lighthouseapp)

    No worries, happy to help and also for Thin itself!

    July 29th, 2009 @ 06:26 PM

  4. ronin-11320 (at lighthouseapp)
    ronin-11320 (at lighthouseapp)

    D'oh - meant to say "thanks for Thin itself"!

    July 29th, 2009 @ 06:26 PM

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.