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

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.
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.