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(ctrl, method) ⇒ RouteNotFoundError

Returns a new instance of RouteNotFoundError.



7
8
9
10
# File 'lib/flame/errors/route_not_found_error.rb', line 7

def initialize(ctrl, method)
	@ctrl = ctrl
	@method = method
end

Instance Method Details

#messageObject



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

def message
	"Route with controller '#{@ctrl}' and method '#{@method}'" \
		' not found in application routes'
end