title: Rails scopes with multiple arguments
body: <p>In my offer.rb model I am doing some filtering after clients who have these offers.
  But I want to be able to pass another param in my scope to search by, for example, the age of a client or so.</p>
  
  <p>This is what I have now in my offer model:</p>
  
  <pre><code>scope :with_client_id, lambda { |client_id| where(:client_id =&gt; client_id) }
  </code></pre>
  
  <p>In the view: </p>
  
  <pre><code>&lt;%= f.select(:with_client_id, options_for_select(current_partner.clients.collect{|c| [c.name, c.id]}), { include_blank: true}) %&gt;
  </code></pre>
  
  <p>How can I pass a client's age per say in this scope?</p>
  
  <p>Thanks!</p>