Ruby on Rails
Thursday, May 24, 2012
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.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment