method

assign_route_options

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.