[Reading time: 2mn]
This post is a follow-up of the previous one here Rails – How to sort a model on a virtual attribute.
So you have a Product model with a couple of virtual attributes like user rating which depends on some clever calculation. But you also have some real attributes.
Continue reading “Rails – One sort to rule them all”