Skip to content

Commit

Permalink
Rescue ActionController::UnknownFormat with 404
Browse files Browse the repository at this point in the history
  • Loading branch information
reidab committed Jul 18, 2014
1 parent 184b610 commit 1714b2f
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ class ApplicationController < ActionController::Base
before_filter :log_the_current_user
before_filter :log_the_session

rescue_from ActionController::UnknownFormat do |e|
render(text: 'Not Found', status: 404)
end

#---[ Authentication ]--------------------------------------------------

# Store the given user in the session.
Expand Down

0 comments on commit 1714b2f

Please sign in to comment.