You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ruby on Rails: Talk
How will I convert this into searchlogic query?
@students = Students.find_by_sql(["SELECT DISTINCT * FROM students
WHERE first_name LIKE ? OR last_name LIKE ? GROUP BY first_name,
last_name, middle_name", params[:first_name], params[:last_name] ])
Thank you,
Jade
John Hinnegan
unread,
Feb 9, 2012, 12:39:20 PM2/9/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rubyonra...@googlegroups.com
Pretty sure something like this will work
Students.where("first_name like ?", params[:first_name]).or("last_name like ?", params[:last_name]).group("first_name, last_name, middle_name").uniq