Exception: ActionController::UrlGenerationError

Inherits:
ActionControllerError show all
Defined in:
lib/action_controller/metal/exceptions.rb

Overview

:nodoc:

Defined Under Namespace

Classes: Correction

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, routes = nil, route_name = nil, method_name = nil) ⇒ UrlGenerationError

Returns a new instance of UrlGenerationError.



28
29
30
31
32
33
34
# File 'lib/action_controller/metal/exceptions.rb', line 28

def initialize(message, routes = nil, route_name = nil, method_name = nil)
  @routes      = routes
  @route_name  = route_name
  @method_name = method_name

  super(message)
end

Instance Attribute Details

#method_nameObject (readonly)

Returns the value of attribute method_name.



26
27
28
# File 'lib/action_controller/metal/exceptions.rb', line 26

def method_name
  @method_name
end

#route_nameObject (readonly)

Returns the value of attribute route_name.



26
27
28
# File 'lib/action_controller/metal/exceptions.rb', line 26

def route_name
  @route_name
end

#routesObject (readonly)

Returns the value of attribute routes.



26
27
28
# File 'lib/action_controller/metal/exceptions.rb', line 26

def routes
  @routes
end