title: RoR filter on controller as this SQL
body: <p>How to write filter on the controller in Ruby on Rails, that is eqvivalent to this SQL code</p>
  
  <pre><code>select * from persons where persons.category = 'developers'
  </code></pre>