How do I remove the quotation marks around a variable so that I can use the LIKE operator in find_by_sql in rails?
@entries1 = Entry.find_by_sql(["SELECT `entries`.name as name FROM `entries` where `entries`.name like '%?%'",@something])
will yield
SELECT `entries`.name as name FROM `entries` where `entries`.name like '%'hello'%'
when @something = 'hello'