From 5c3691ebe00b7996b506e65c4beea349cc8e9a46 Mon Sep 17 00:00:00 2001 From: Mark Moser Date: Thu, 12 Jan 2017 19:03:05 -0600 Subject: [PATCH] neat routing visualizer trick --- config/routes.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/routes.rb b/config/routes.rb index 0fbe80c..e7a7558 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,4 +1,6 @@ # frozen_string_literal: true +# Neat routing visualizer, in irb: +# File.open('routing.html', 'w+'){|f| f.write Rails.application.routes.router.visualizer } Rails.application.routes.draw do get "/styleguide", to: "application#styleguide", as: :styleguide get "/admin/styleguide", to: "application#styleguide"