conditions = [“first_name LIKE ? OR email like ?”, “%#{@params[:query]}%”, “%#{@params[:query]}%”] etc.
Vish
conditions = [“first_name LIKE ? OR email like ?”, “%#{@params[:query]}%”, “%#{@params[:query]}%”] etc.
Vish
Check your source. You’ve probably got an unclosed begin end block somewhere (syntax error). The way it should work is this:
Model.find(:all, :conditions => [‘id = ? OR id = ?’, id1, id2])
(the example in my previous mail should read ‘:conditions =>’ instead of ‘:conditions =’)
Vish