Class

ActionController::Routing::Optimisation::PositionalArguments

Inheritance
< ActionController::Routing::Optimisation::Optimiser < Object

Given a route

  map.person '/people/:id'

If the user calls person_url(@person), we can simply return a string like "/people/#{@person.to_param}" rather than triggering the expensive logic in url_for.

Methods

Instance

Visibility Signature
public generation_code ()
public guard_conditions ()

Instance Method Detail

generation_code()

guard_conditions()