method

define_url_helper

rails latest stable - 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')