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

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
3800d285e8cfeb39ac849d2d68ca07b3?d=identicon&s=25 victor Arul (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.