Dynamic parameters in link_to

You will need to use client side javascript to construct the value you want to pass. You need to use link_to_function to make the link call javascript, compute the URL including parameters, then either fetch or redirect to that URL.

Michael