Они очень просты в настройке.Вот тот, с которого вы можете начать:
class Object < ActiveRecord::Base
has_many :votes, :as => :votable
has_many :voting_users,
:through => :votes,
:source => :user
#object_controller
def vote_up
get_vote
@vote.value += 1 unless @vote.value == 1
@vote.save
respond_to do |format|
format.html {render :action => 'view'}
format.js { render :action => 'vote'}
end
end
private
def get_vote
current_object = Objects.detect{|r| r.id == params[:id].to_i}
@object = current_object
@vote = current_object.votes.find_by_user_id(current_user.id)
unless @vote
@vote = Vote.create(:user_id => current_user.id, :value => 0)
current_object.votes << @vote
end
end