0

Rails 3 用の Vote_fu を正常にインストールし、コンソール ウィンドウで目的のオブジェクトに投票しましたが、レールを初めて使用するので、コントローラーに投票システムを実装する方法が本当にわかりません。私は本当に方向性を探しているだけで、そこからそれを取ろうとします.

ありがとう。

4

1 に答える 1

1

Everything is described at Github's vote_fu page

There are two methods vote_for and vote_against which you can use in your controller. Before that, for sure, you have to add acts_as_voter and acts_as_votable to your models. Thats it

于 2011-03-26T03:02:06.267 に答える