Rails : Ransack : Sorting data by ratings

Its not quite easily graspable to sort your search results by Ratings if you have separate Ratings table and there is an intermediate table called Job or Similar. Example Model schema is below for reference.

Continue reading

Advertisements