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.