Skip to content

Commit

Permalink
Rescue from ActionView::MissingTemplate
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-hank committed Sep 13, 2022
1 parent 17ff141 commit 869d1c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ class ApplicationController < ActionController::Base
ActionController::NotImplemented,
ActionController::ParameterMissing,
ActionDispatch::Http::MimeNegotiation::InvalidType,
ActionDispatch::Http::Parameters::ParseError
ActionDispatch::Http::Parameters::ParseError,
ActionView::MissingTemplate
].each do |exception_class|
rescue_from exception_class do |exception|
resource_not_found(exception)
Expand Down

0 comments on commit 869d1c3

Please sign in to comment.