Passing a hash in a GET string


Hi Guys,

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?
(i.e. searchfields[firstname]=Joe&searchfields[surname]=Bloggs)