diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/comments_controller.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/controllers/comments_controller.rb b/app/controllers/comments_controller.rb index d4aaa27..d3ef31d 100644 --- a/app/controllers/comments_controller.rb +++ b/app/controllers/comments_controller.rb @@ -60,6 +60,11 @@ class CommentsController < ApplicationController else @error = "Error: Cannot find GLSA" end + + respond_to do |format| + format.html { render :status => 500 } + format.js + end end def show |