title: Rails ActiveRecord Query for Not Equal
body: <p>Rails 3.2.1</p>
  
  <p>Is there a way (without <a href="https://github.com/activerecord-hackery/squeel">squeel</a>) to use the hash syntax of ActiveRecord to construct a <code>!=</code> operator?</p>
  
  <p>Something like <code>Product.where(id: !params[:id])</code></p>
  
  <p>Generates <code>SELECT products.* FROM products WHERE id != 5</code></p>
  
  <p>Looking for the opposite of <code>Product.where(id: params[:id])</code></p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>In rails 4 there is a <code>not</code> operator.</p>
  
  <p><code>Product.where.not(id: params[:id])</code></p>