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

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
0e577200992b9f87fbfdb84f70ae2cea?d=identicon&s=25 sirdavidoff (Guest)
on 2005-11-30 16:39
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!
This topic is locked and can not be replied to.