Revision: 11478
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at February 6, 2009 14:56 by sohooo
Initial Code
Event.find( :all, :conditions => [ "title like :search or description like :search", {:search => "%Tiki%"}] )
Initial URL
Initial Description
Instead of simply adding a list of things at the end of the array, you can also pass in a hash and change the question marks to actual named replacements. This can help you keep the order of your arguments straight.
Initial Title
Find Conditions via Hash
Initial Tags
find
Initial Language
Rails