Exception: Flame::Errors::RouteNotFoundError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/flame/errors/route_not_found_error.rb

Overview

Error for Flame::Dispatcher.path_to

Instance Method Summary collapse

Constructor Details

#initialize(controller, action) ⇒ RouteNotFoundError

Create a new instance of error

Parameters:

  • controller (Flame::Controller)

    controller with which route not found

  • action (Symbol)

    action with which route not found



11
12
13
14
15
16
# File 'lib/flame/errors/route_not_found_error.rb', line 11

def initialize(controller, action)
  super(
    "Route with controller '#{controller}' and action '#{action}' " \
      'not found in application routes'
  )
end