Displaying 1 result from an estimated 1 matches for "b65fe748".
Did you mean:
b18fe748
2006 May 30
3
match operator in find
Greetings!
Is there some special syntax required to use the match operator (=~) in a find operation? Or is it not possible? I''ve got some data items from an external source that could be capitalized or not. So right now I''m stuck with doing:
Item.find(:first,
:conditions => ["name = ? or name =?", Potatoes, potatoes])
I''d prefer to do: