We have a controller by name “ServiceController” (service_controller.rb)
and everything was fine until we upgraded our rails. We recently
upgraded Rails from Rails 1.1.6 to Rails 1.2.3. and after that when we
try to invoke the “ServiceController” we are getting an error like this
“undefined method find for Service:Module”
I guess some namespace collision is happening, internally in Rails 1.2.3
is Rails also using the same name “Service” so that it invokes the Rails
“ServceController” instead of our controller. Has anybody come across
As a workaround i guess if we rename our ServceController" to some other
name it might work, but we would like to do that only as the last
alternative, is there any workaround for the above problem (or) is there
a way in Rails to fully qualify the name to ask rails to search for our
“ServiceController” instead of Rails internal?
Please help in this regard in case if have any ideas.