diff options
Diffstat (limited to 'app/controllers/errors_controller.rb')
-rw-r--r-- | app/controllers/errors_controller.rb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/app/controllers/errors_controller.rb b/app/controllers/errors_controller.rb index 03b8929..f7087fa 100644 --- a/app/controllers/errors_controller.rb +++ b/app/controllers/errors_controller.rb @@ -10,20 +10,20 @@ class ErrorsController < ApplicationController # /i/callback redirect_to root_path when Aclog::Exceptions::TweetNotFound - render "error", :status => 404 + render "error", status: 404 when Aclog::Exceptions::UserNotFound - render "error", :status => 404 + render "error", status: 404 when Aclog::Exceptions::UserNotRegistered - render "error", :status => 404 + render "error", status: 404 when Aclog::Exceptions::UserProtected - render "error", :status => 403 + render "error", status: 403 when Aclog::Exceptions::LoginRequired - render "error", :status => 403 + render "error", status: 403 when ActionController::RoutingError - render "error", :status => 404 + render "error", status: 404 else warn @exception - render "error", :status => 500 + render "error", status: 500 end end end |