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 9558685 commit b8e08adCopy full SHA for b8e08ad
1 file changed
app/controllers/errors_controller.rb
@@ -1,7 +1,7 @@
1
# Provides web actions that represent errors. Rails' standard error pages are static HTML with inline CSS; by using
2
# a custom error controller we get all the layouts and CSS.
3
class ErrorsController < ApplicationController
4
- protect_from_forgery except: [:error], store: :cookie
+ protect_from_forgery with: :exception, except: [:error], store: :cookie
5
6
def error
7
@exception = request.env['action_dispatch.exception']
0 commit comments