Files
danbooru/app/controllers/comment_votes_controller.rb
2013-03-19 23:10:10 +11:00

11 lines
255 B
Ruby

class CommentVotesController < ApplicationController
respond_to :js
before_filter :member_only
def create
@comment = Comment.find(params[:comment_id])
@comment_vote = @comment.vote!(params[:score])
respond_with(@comment_vote)
end
end