If I have a route like so
get 'controller/:id/action/:param' => 'Controller#action'
How can I use link_to
to create a link like <a href="/controller/12345/action/abcde">
?
So far I have gotten link_to 'Link text', {:action => 'action'}
To give me <a href="/controller/12345/action">
but using link_to 'Link text', {:action => 'action', :param => 'abcde'}
will give me <a href="/controller/12345/action?param=abcde">