method
routes_for
rails latest stable - Class:
ActionController::Routing::RouteSet
routes_for(options, merged, expire_on)public
No documentation available.
# File actionpack/lib/action_controller/routing/route_set.rb, line 466
def routes_for(options, merged, expire_on)
raise "Need controller and action!" unless controller && action
controller = merged[:controller]
merged = options if expire_on[:controller]
action = merged[:action] || 'index'
routes_by_controller[controller][action][merged.keys][1]
end