Very simple question: how do you write a link_to that passes on all existing params to the target controller action?
Try
link_to("My Link", params.merge({:controller => "my_controller", :action => "my_action"}))
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With