method

add_route

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.

add_route(path, options = {})
public

No documentation available.

# File actionpack/lib/action_controller/routing/route_set.rb, line 310
      def add_route(path, options = {})
        options.each { |k, v| options[k] = v.to_s if [:controller, :action].include?(k) && v.is_a?(Symbol) }
        route = builder.build(path, options)
        routes << route
        route
      end