Passing a hash in a GET string


#1

Hi Guys,

I have a search action that takes a hash of parameters, e.g.

searchfields[‘firstname’] = Joe
searchfields[‘surname’] = Bloggs
etc.

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)

Thanks!