I have the following named scope:
named_scope :report_search, lambda { |search|
{
:conditions => ["rep_name like ? or rep_id like ? or rep_symbol like ? or rep_issue like ?", search]
}
}
When I run it, I get an error message:
wrong number of bind variables
I would appreciate it if someone could help me figure out what is wrong with the code.
Many thanks
source
share