Web Development

I have been using thumbs_up gem for some time now. I love it. It makes it quite convenient whenever you have a need to create a voting system on your application.

However, this is something I haven’t seen in their documentation and I just want to put it up here in case someone needs it in the future:

Order by Tally

Retrieve your models based on the sum of upvotes and downvotes.

Design.plusminus_tally.order('plusminus_tally DESC')