method

assign_route_options

rails latest stable - Class: ActionController::Routing::RouteBuilder

Method deprecated or moved

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

assign_route_options(segments, defaults, requirements)
public

Takes a hash of defaults and a hash of requirements, and assigns them to the segments. Any unused requirements (which do not correspond to a segment) are returned as a hash.