12 lines
231 B
Ruby
12 lines
231 B
Ruby
class CommentVotesController < ApplicationController
|
|
def create
|
|
@comment = Comment.find(params[:comment_id])
|
|
@comment.vote!(params[:score])
|
|
rescue CommentVote::Error => x
|
|
@error = x
|
|
end
|
|
|
|
def destroy
|
|
end
|
|
end
|