We build Web & Mobile Applications.

< All Articles

Thin, Rails 1.2.3/1.2.6 and ActionController::Dispatcher (NameError)

UPDATE! This patch has now been applied to the Thin master repository so will be fixed in all future releases.

Whilst trying to get an old Rails app up and running with Thin (Gem version 1.2.2) then I encountered a spot of bother:

load_missing_constant: uninitialized constant ActionController::Dispatcher (NameError)

I can’t remember the exact point of change, but remember that Dispatcher changed into ActionController::Dispatcher somewhere along the line - obviously after Rails 1.2.3 and 1.2.6!

There was already a check in place within Thin to see if the call method could be used on the Dispatcher - the trouble being that because ActionController::Dispatcher isn’t defined then it fails!

I’ve submitted a ticket - a simple check to make sure ActionController::Dispatcher is defined - in the meantime then I’ve also put a patch up as a gist to get things running.

Updated on 07 February 2019
First published by Chris Anderton on 15 July 2009
© Chris Anderton 2019
"Thin, Rails 1.2.3/1.2.6 and ActionController::Dispatcher (NameError)" by Chris Anderton at TheWebFellas is licensed under a Creative Commons Attribution 4.0 International License.