Is there a way to do complex sorting at the database query level?
Ie /
The best way to apply this to the database level (in Postgridges) is to sort through the result of Ruby (which will slow down page etc.) using the sort. If you can see a great / Code> method. P> Post.order (up / down) .all ?
meta_where gem, you can do anything like this <
can do something like a post. Selection ("*, (above / below) ratio"). In order to know the exact value you have in each
post object, you can have a
ratio
Comments
Post a Comment