Sub-Controller Issue on Host Server - Very Mysterious


#1

Hello all. On my host server, I currently have the paths “/cars”
and “/cars/ford” and a default index page comes up for each. I
created these by running “ruby script/generate controller cars index”
and “ruby script/generate controller cars/ford index”.

However, when I try to do the same thing to make “/checklists” and
“/checklists/wedding”, I get the following error when trying to
access “/checklists/wedding”:

"Unknown action

No action responded to wedding. Actions: index"

If I remove the “/checklists” controller and leave the
“/checklists/wedding” one, the latter works fine.

I restarted the app server and it still does not work. The log says:

"Processing ChecklistsController#wedding (for 68.82.208.31 at 2009-03-29
22:32:29) [GET]
Session ID: BAh7BiIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNo
SGFzaHsABjoKQHVzZWR7AA==–469f7ea16c14404094d48c142e100772d6a39da1
Parameters: {“action”=>“wedding”, “controller”=>“checklists”}

ActionController::UnknownAction (No action responded to wedding): …"

I did the same thing on my local machine and everything works fine. The
local log says:

“Processing Checklists::WeddingController#index (for 127.0.0.1 at
2009-03-29 22:37:56) [GET]
Rendering template within layouts/site
Rendering checklists/wedding/index
Completed in 4ms (View: 2, DB: 0) | 200 OK
[http://localhost/checklists/wedding]”

Why does the host server keep trying to go to ChecklistsController, when
it should be looking at Checklists::WeddingController?

I do not understand why the system will not allow me to do this on the
host server. All versions of everything are the same.

Any help would be greatly appreciated. Thank you.