Get Unused Routes of Large Rails App đź› 

Written by rishipithadiya | Published 2019/10/15
Tech Story Tags: ruby | ruby-on-rails | rails | rubygems | rails-routes | ruby-on-rails-development | scripting | latest-tech-stories

TLDR After a few years of continuous development, your rails application becomes larger and it’s good practice to do some cleanup. One of the most obvious cleanups is cleaning up unused routes that are not needed. Getting unused routes for your rails app is to copy above code in your rails console or you can paste it in single file in the root directory of your application and run it using the following command - get-unused-routes-rb. Using the small ruby script we’re able to get all unused routes of our large rails application, we don’t use any Gem/Plugin to achieve this.via the TL;DR App

no story

Written by rishipithadiya | Senior Technical Lead(Ruby on Rails) at Sell.do ⚡️
Published by HackerNoon on 2019/10/15