No one should learn anything more than once
Aug 24, 2011
Mongoid Criteria does not work as expected
You have to really be careful because the results are not yet pull
For example, if you invoke .length, it will instead return the length of the criteria array.
Therefore, please always do this:
result = Kratoo.only(:title).skip(100).entries
‹
›
Home
View web version