i have a search form set up which points to my search controller.
When I hit “submit” in the form, it activates the perform_search
method in my search controller.
It works ok.
A typical GET request that is performed would look like this:
Now, I would like to make a “hot list” in my index page which is
basically links to “hot” items.
I am using the link_to helper but i can’t seem to generate parameters
similar to what it is like from a form.
My perform_search method has been coded to take search parameters
strictly from “params[:search]”.
In short, I need to be able to generate a url with parameters that
start with “[search]” followed by the attribute name and query value.
How do I go about doing that?