Flowdock
method

routes

Importance_0
Ruby on Rails latest stable (v6.1.7.7) - 0 notes - Class: Rails::InfoController
routes() public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File railties/lib/rails/info_controller.rb, line 21
  def routes
    if path = params[:path]
      path = URI::DEFAULT_PARSER.escape path
      normalized_path = with_leading_slash path
      render json: {
        exact: match_route { |it| it.match normalized_path },
        fuzzy: match_route { |it| it.spec.to_s.match path }
      }
    else
      @routes_inspector = ActionDispatch::Routing::RoutesInspector.new(_routes.routes)
      @page_title = "Routes"
    end
  end
Register or log in to add new notes.