Module: Roda::RodaPlugins::NamedRoutes::RequestMethods

Defined in:
lib/roda/plugins/named_routes.rb

Instance Method Summary collapse

Instance Method Details

#route(name, namespace = nil) ⇒ Object

Dispatch to the named route with the given name.


159
160
161
# File 'lib/roda/plugins/named_routes.rb', line 159

def route(name, namespace=nil)
  scope.send(roda_class.named_route(name, namespace), self)
end