Searching in Rails 3
Posted
by
cbarton
on Stack Overflow
See other posts from Stack Overflow
or by cbarton
Published on 2011-01-13T21:31:18Z
Indexed on
2011/01/13
21:53 UTC
Read the original article
Hit count: 200
ruby-on-rails
Here is the situation: I have the need to search for specifics or generals, much like expedia.com or your local library catalog search.
In that there are fields that may or may not be filled out based on the individual need. It acts much like an "advanced search page". I have all of that code done for the models/controller and such and have it setup with a Searches controller along with matching model and views.
The question that I have is there a way to cut down the amount of parameters posted to GET so that the url isn't search?search[:a]=""+search[:b]=""+search[:c]="x"... plus the unicode checkmark. I only want the filled out fields to be shown in the response link especially minus the checkmark.
cbarton
© Stack Overflow or respective owner