errors_controller.rb 217 B

123456
  1. class ErrorsController < ApplicationController
  2. skip_before_action :verify_csrf_token
  3. def routing
  4. not_found(ActionController::RoutingError.new("No route matches [#{request.method}] #{request.path}"))
  5. end
  6. end