Too Long; Didn't Read
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.