I’m trying to do something like:
SELECT * FROM attachment WHERE filename LIKE ‘%whatever%’;
so my code is:
@search = params[:search]
@attachments = Attachment.find(:all, :conditions => [“filename LIKE
but that’s converting to:
SELECT * FROM attachments WHERE (filename LIKE ‘%‘whatever’%’);
how do i prevent those extra single quotes from being inserted?