Ruby on Rails latest stable (v5.2.3) - 0 notes - Class: ActionDispatch::Routing::RouteSet::NamedRouteCollection

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v4.1.8) is shown here.

define_url_helper(route, name, 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.