Sub-Controller Issue on Host Server - Very Mysterious

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 at 2009-03-29
22:32:29) [GET]
Session ID: BAh7BiIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNo
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 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

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.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs