I have a search action that takes a hash of parameters, e.g.
searchfields[‘firstname’] = Joe
searchfields[‘surname’] = Bloggs
Is there a way that I can pass this hash to the link_to function so that
it will encode it properly in the URL?