@search = Todolist.search(params[:search])
@todolists = @search.all
I tried the following code, but had no luck:
if params[:search].blank?
@search = Todolist.search(completed = false)
@todolists = @search.all
else
@search = Todolist.search(params[:search])
@todolists = @search.all
end
If anybody has any suggestions, I would greatly appreciate your help.
-Charley
I typically just do:
@search.my_conditions ||= "my default value"
@search.all
Hope that helps
Ben Johnson
Binary Logic
W: www.binarylogic.com
E: bjoh...@binarylogic.com
> --
>
> You received this message because you are subscribed to the Google Groups "Searchlogic" group.
> To post to this group, send email to searc...@googlegroups.com.
> To unsubscribe from this group, send email to searchlogic...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/searchlogic?hl=en.
>
>