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.
This is the error I get, even after prepending the script with
Traceback (most recent call last):
get-unused-routes.rb:1:in `’: uninitialized constant Rails (NameError)
Please execute following line to get rid of the error you’re getting -