Routing issue in 3.1.1

7 views
Skip to first unread message

Peter Hickman

unread,
Oct 30, 2013, 7:04:42 AM10/30/13
to rubyonra...@googlegroups.com
I have a 3.1.1. app that is running in production and has been for several weeks now. I just added a new page and controller with an entry in routes.rb

In development everything is just fine. But when I deploy the change to production I get a problem with the routes. Everything else is just fine.

Started GET "/fix_scores_mappings" for 82.152.150.75 at 2013-10-30 10:12:54 +0000

ActionController::RoutingError (uninitialized constant FixScoresMappingController):

The FixScoresMappingController exists and the output from rake routes is identical so I am at a loss as to what is going on.

The only other thing that might be important (but given that everything works in development I am unconvinced) is that FixScoresMappingController was originally called FixSupplierMappingController and was manually renamed.

Any ideas as to where to start looking?

Colin Law

unread,
Oct 30, 2013, 11:48:47 AM10/30/13
to rubyonra...@googlegroups.com
It is not a routing error, it cannot find the controller. Are you
sure you renamed the controller file and the class correctly? Have
you restarted the server?

Colin

Peter Hickman

unread,
Oct 30, 2013, 12:40:12 PM10/30/13
to rubyonra...@googlegroups.com
Aaargh. Its mercurial being a complete arse. It was ignoring the file for it's own twisted reasons and not telling me about it.

Sorry for wasting your time :)

Reply all
Reply to author
Forward
0 new messages