class

ActionController::Routing::Optimisation::PositionalArguments

rails latest stable - Superclass: Optimiser

Class deprecated or moved

This class is deprecated or moved on the latest stable version. The last existing version (v2.3.8) is shown here.

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.

Files

  • actionpack/lib/action_controller/routing/optimisations.rb