D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
td-agent
/
embedded
/
lib
/
ruby
/
gems
/
2.1.0
/
gems
/
railties-4.2.8
/
lib
/
rails
/
Filename :
info_controller.rb
back
Copy
require 'rails/application_controller' require 'action_dispatch/routing/inspector' class Rails::InfoController < Rails::ApplicationController # :nodoc: prepend_view_path ActionDispatch::DebugExceptions::RESCUES_TEMPLATE_PATH layout -> { request.xhr? ? false : 'application' } before_action :require_local! def index redirect_to action: :routes end def properties @info = Rails::Info.to_html @page_title = 'Properties' end def routes @routes_inspector = ActionDispatch::Routing::RoutesInspector.new(_routes.routes) @page_title = 'Routes' end end