Class: Rails::RoutesController

Inherits:
RailsInfoController show all
Defined in:
app/controllers/rails/routes_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



8
9
10
11
12
# File 'app/controllers/rails/routes_controller.rb', line 8

def index
  Rails.application.reload_routes!
  inspector = Rails::Application::RouteInspector.new
  @routes = inspector.format(Rails.application.routes.routes, ENV['CONTROLLER']).join "\n"
end