Forum: Ruby on Rails Passing a hash in a GET string

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
sirdavidoff (Guest)
on 2005-11-30 17:39
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)

This topic is locked and can not be replied to.