Forum: Ruby on Rails The Usage of .except in Query

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
02254e2fdd92c9eb784e5c2ee715e3aa?d=identicon&s=25 victor A. (victor12)
on 2012-05-24 14:41
Hi every body...
please look at the below queries...
>> Order.limit(5)
>> Order.limit(5).offset(4).except(:offset)

Both the queries will give same result. If then; the use of .except here
is needless.

My question is that where that(.except) could be more useful. can u
please explain me a context for that.
This topic is locked and can not be replied to.