link_to the current page plus/merged with a param [duplicate]

You can use url_for passing the params.

url_for(params.merge(:c => "e"))

If you use an helper like link_to that internally uses url_for you can skip the url_for and pass the has directly.

link_to "Page", params.merge(:c => "e")

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)