Rails 3.2.1
Is there a way (without squeel) to use the hash syntax of ActiveRecord to construct a !=
operator?
Something like Product.where(id: !params[:id])
Generates SELECT products.* FROM products WHERE id != 5
Looking for the opposite of Product.where(id: params[:id])
UPDATE
In rails 4 there is a not
operator.
Product.where.not(id: params[:id])