public Method

RouteSet.routes_for_controller_and_action_and_keys(controller, action, keys)

There's no documentation for this item.

Source Code

# File action_controller/routing/route_set.rb, line 421
def routes_for_controller_and_action_and_keys(controller, action, keys)
  selected = routes.select do |route|
    route.matches_controller_and_action? controller, action
  end
  selected.sort_by do |route|
    (keys - route.significant_keys).length
  end
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.