hi guys,

 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:

http://my-test-box.local:3000/search?search[category_id_equals]=8&search[sub_category_id_equals]=&;
search[location_like]=&search[new_equals]=0&search[title_like]
=&commit=Search

 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.

Something like: http://my-test-box.local:3000/search?search[item_id_equals]=8
.

 How do I go about doing that?

thanks :)


-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to