[Rails] Re: Trying to create search filter persistence using SearchLogic

2010-04-02 Thread Patrick Shainin
dburges wrote: I have just set up a search form on my index using SearchLogic- it works great. However, since there are several search parameters in the form I want the results of the most recent search to remain in effect until the user does a new search. I can't figure out how to do this!

[Rails] Re: Trying to create search filter persistence using SearchLogic

2010-04-02 Thread Patrick Shainin
Patrick Shainin wrote: For example, to add a check box that limits the search to rows with a certain condition, you could define a named scope in Model.rb like this: named_scope :my_condition, :conditions = your sql condition here Then in the view form, you would include: lt;%= f.label