Best way to implement voting in a Rails application?

后端 未结 3 468
一生所求
一生所求 2021-02-04 18:48

What\'s the best plugin these days for implementing voting on a Rails site?

Two I\'m aware of are:

  1. vote_fu
  2. acts_as_voteable
3条回答
  •  伪装坚强ぢ
    2021-02-04 19:21

    There's no general 'best' solution. Check out how both work and see what best fits what you want and what fits your application's needs. In this case, acts_as_votable allows voting on models. vote_fu contains more as it ads the concept of 'acts_as_voter' to limit the models that may vote. It also adds 'has_karma' to give karma based on user voting.

    As you see, both are different options and only you know what best fits your needs.

提交回复
热议问题