We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f86b750 commit 29c6cacCopy full SHA for 29c6cac
config/initializers/rambulance.rb
@@ -29,9 +29,10 @@
29
# If Rambulance receives an exception that is not listed here, it'll render
30
# the internal server error template and return 500 as http status.
31
config.rescue_responses = {
32
- ActionController::RoutingError => :not_found,
33
- AbstractController::ActionNotFound => :not_found,
34
- ActionController::BadRequest => :bad_request,
+ "ActionController::RoutingError" => :not_found,
+ "AbstractController::ActionNotFound" => :not_found,
+ "ActionController::BadRequest" => :bad_request,
35
+ "ActionController::InvalidAuthenticityToken" => :unprocessable_entity,
36
37
# "ActiveRecord::RecordNotUnique" => :unprocessable_entity,
38
# "CanCan::AccessDenied" => :forbidden,
0 commit comments