title: Query through associations - Rails 3
body: <p>I'd like to make some queries just like this:</p>
  
  <pre><code>employees = Employee.where(:group.name =&gt; 'admin')
  employees = Employee.where(:company.address.city =&gt; 'Porto Alegre')
  </code></pre>
  
  <p>I mean, I need to access fields that are in another model via association.</p>
  
  <p>Thanks in advance</p>