handle some common error cases

This commit is contained in:
albert
2013-03-15 15:18:43 -04:00
parent 85ab44cb80
commit 95e8f02478
4 changed files with 12 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
class CommentVotesController < ApplicationController
respond_to :js
before_filter :member_only
def create
@comment = Comment.find(params[:comment_id])