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:
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!