I currently have this code:
link_to 'add a new baz!', new_foo_bar_baz_path(@foo, @bar, baz: { thing: 'the-value' })
which generates this url:
http://ganxy.local/foos/1/bars/2/bazes/new?baz%5Bthing%5D=the-value
Because of some changes I'm making to my app I want to make the url generation polymorphic. So, something like this:
link_to 'add a new baz!', [@foo, @bar, :baz]# : { thing: 'the-value' })
Is there a way to add the ?baz%5Bthing%5D=the-value
to the end, or do I need to generate the string manually?