Return to Snippet

Revision: 11478
at February 6, 2009 14:56 by sohooo

Initial Code
  :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

Initial Language