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!
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
I have done something along these lines using a database store. I
dont use SearchLogic, but build my searches using anonymous scope and
also use Thinking Sphinx.
I have a search model with attributes as below:
Where the search was made from:
t.string user
t.string model_name
3 matches
Mail list logo