Try
Widget.find(:all, :conditions => ["name like '%awesome%'"])
Just added single quotes around the string %awesome%
Edit: Well, that really doesn't work. Sql sanitizer does something sluggish with% s.
This will work.
Widget.find(:all, :conditions => ["name like ?","%awesome%"])
According to John Topley's answer, you can make a string a variable if that is what you really need.
, SQL, development.log -, , . , SQL, , , ActiveRecord ( , barfing , )