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