Module: ActionController::Routing

Defined in:
lib/action_controller/routing.rb

Overview

Defined Under Namespace

Classes: Route, RouteSet

Constant Summary collapse

Routes =
RouteSet.new

Class Method Summary collapse

Class Method Details

.draw(*args, &block) ⇒ Object

:nodoc:



332
333
334
# File 'lib/action_controller/routing.rb', line 332

def self.draw(*args, &block) #:nodoc:
  Routes.draw(*args) {|*args| block.call(*args)}
end

.extract_parameter_value(parameter) ⇒ Object

:nodoc:



327
328
329
330
# File 'lib/action_controller/routing.rb', line 327

def self.extract_parameter_value(parameter) #:nodoc:
  value = (parameter.respond_to?(:to_param) ? parameter.to_param : parameter).to_s
  CGI.escape(value)
end