title: searching records in rails include belongs_to or has_many
body: <p>I have two models, products and producers. A producer can have many products and a product belongs to a producer.
  I'm now trying to get all records from a search query like this:</p>
  
  <pre><code>@products = Product.where("name like ? OR product.producer.name like ?", "%#{params[:q]}%", "%#{params[:q]}%")
  </code></pre>
  
  <p>This should return all products where product.name or product.producer.name is like the search string. Is there a short rails way?</p>