Sprankelprachtig aan/afmeldsysteem

application_controller.rb 381B

12345678910
  1. class ApplicationController < ActionController::Base
  2. protect_from_forgery with: :exception
  3. rescue_from ActionController::InvalidAuthenticityToken, with: :invalid_auth_token
  4. private
  5. def invalid_auth_token
  6. render text: "You submitted an invalid request! If you got here after clicking a link, it's possible that someone is doing something nasty!", status: 400
  7. end
  8. end