title: How can I use the Rails "find" method to perform an AND or an OR query?
body: <p>Let's assume I have a model called "product."  Let's assume that product has three fields.  These fields are 'name' (type string), 'cost' (type integer), and 'is_visible' (type bool).</p>
  
  <p>1) How can I do a search query using the Rails "find" method (if there is another method, that's fine) so that I can search for all products with a cost greater than 100 AND is_visible is true?</p>
  
  <p>2) What if we wanted to change this to search to where name != '' OR cost == 0?</p>
  
  <p>This isn't a problem to do an SQL, but I would like to think that Rails has a way to do AND/OR queries to the database without using SQL.</p>
  
  <p>Thanks!</p>