Hi,
I have the following mapping in routes.rb.
map.resources :definitions, :member=>{:execute=>:post},
:collection=>{:select=>:get} do |def|
def.resources :definition_fields
end
Now I am able to access the ''index'' method of
definition_fields_controller.rb by the following code.
definition_definition_fields_path(@definition)
It works well. But when I tried calling the ''new'' method of
definition_fields_controller.rb with the following syntax, it failed.
definition_new_definition_field_path(@definition)
What is the right way to call the ''new'' and
''edit'' methods when this
kind of mapping is used???
Thanks in advance...
- Karthik.
--
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
-~----------~----~----~----~------~----~------~--~---