What am missing here in my routes generation?
routes.rb
map.resources :qualifications do |qualification|
qualification.resources :details, :controller =>
"qualification_details"
end
output.rhtml
link_to link_name, details_url(:qualification_id => 5, :id => 7)
generated url
http://localhost:3000/qualifications/5/details?id=7 # this is what
comes out
http://localhost:3000/qualifications/5/details/7 # this is what I
want
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---