Displaying 1 result from an estimated 1 matches for "8fb9b44c".
2006 Mar 20
5
:conditions => ["phone like ''%:phone%''" , {:phone => "555"}]
Hi all,
What''s wrong with the way I specify the condition in :
Person.find :all, :conditions => ["phone like ''%:phone%''" , {:phone
=> "555"}]
?
It translates to (note the two '' between the two ")
SELECT * FROM people WHERE (phone like "%''555''%" )
instead of
SELECT * FROM people WHERE