method

routes_for

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

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.

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