Files
danbooru/app/controllers/comment_votes_controller.rb
2011-09-14 17:46:42 -04:00

10 lines
228 B
Ruby

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