を働いていない私は、次のコードをしている:rescue_from :: AbstractController :: ActionNotFoundは
unless Rails.application.config.consider_all_requests_local
rescue_from Exception, with: :render_exception
rescue_from ActiveRecord::RecordNotFound, with: :render_exception
rescue_from ActionController::UnknownController, with: :render_exception
rescue_from ::AbstractController::ActionNotFound, with: :render_exception
rescue_from ActiveRecord::ActiveRecordError, with: :render_exception
rescue_from NoMethodError, with: :render_exception
end
彼らは除く:: AbstractController :: ActionNotFound、すべての作業完璧
は、私はまた、
AbstractController::ActionNotFound
ActionController::UnknownAction
を試してみました
エラー:
AbstractController::ActionNotFound (The action 'show' could not be found for ProductsController):