mardi 4 août 2015

Random order using mongoid on rails 4

I trying to get results in random order, but I can't find anything in the documentation. I want something like order random on postgresql

 .order("RANDOM()")

thanks in advance.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire