Additional parameter for nested resources

Julian
Sat, 26 Jul 2008 10:21:57 -0000

Hi

I''m working with rails 2.1.0 and with nested resources.

My links i generate with the following helper:

link_to @state.name, [@country, @state]

Everything works fine and the urls are correctly generated.


But now I''d like to add an additional parameter to the url like:
/country/1/state/2?category=2

The additional parameter will only be used for filtering in the show
action, so I don''t want to add a new nested route.

How can I generate an URL with such a parameter?  I did not find any
solution to this problem...

Thanks very much for your help!
Julian

--~--~---------~--~----~------------~-------~--~----~
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