title: How to use the 'where' method from 'ActiveRecord::QueryMethods' in order to limit searching?
body: <p>I am using Ruby on Rails 3 and I would like to limit a search in a <code>where</code> method from <code>ActiveRecord::QueryMethods</code> using something as the following</p>
  
  <pre><code>Users.where(:name =&gt; "Test_name", :limit =&gt; 10)
  Users.where(:name =&gt; "Test_name").limit(10)
  </code></pre>
  
  <p>That is, <em>I would like to query only 10 records</em>. How I can do that?</p>
  
  <hr>
  
  <p>In the RoR source code there is:</p>
  
  <pre><code>def where(opts, *rest)
    relation = clone
    relation.where_values += build_where(opts, rest) unless opts.blank?
    relation
  end
  </code></pre>