method

define_url_helper

Importance_1
v3.0.0 - Show latest stable - 0 notes - Class: ActionDispatch::Routing::RouteSet::NamedRouteCollection
define_url_helper(route, name, kind, options) private

Create a url helper allowing ordered parameters to be associated with corresponding dynamic segments, so you can do:

  foo_url(bar, baz, bang)

Instead of:

  foo_url(:bar => bar, :baz => baz, :bang => bang)

Also allow options hash, so you can do:

  foo_url(bar, baz, bang, :sort_by => 'baz')
Show source
Register or log in to add new notes.