Created
May 7, 2020 13:31
-
-
Save drymar/04010ee6e052c071592c9d206ad853ac to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# .pryrc | |
require 'rails/application/route_inspector' | |
def display_routes | |
Rails.application.reload_routes! | |
routes = Rails.application.routes.routes | |
inspector = Rails::Application::RouteInspector.new | |
puts inspector.format(routes, ENV['CONTROLLER']).join("\n") | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment