Flowdock
method

define_url_helper

Importance_1
Ruby on Rails latest stable (v4.1.8) - 0 notes - Class: ActionDispatch::Routing::RouteSet::NamedRouteCollection
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.