Hello all. On my host server, I currently have the paths
"<root>/cars"
and "<root>/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
"<root>/checklists" and
"<root>/checklists/wedding", I get the following error when
trying to
access "<root>/checklists/wedding":
"Unknown action
No action responded to wedding. Actions: index"
If I remove the "<root>/checklists" controller and leave the
"<root>/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.
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---