नहीं मैं निम्नलिखित कोड है: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):