I usually run $ rails routes | grep ... from console, but today I had to find a pesky excess route definition for a very popular resource that appears in many namespaces. If only there was a way to inspect the exact line in routes.rb that defines the route...
There is! At /rails/info/routes path of the app. The search is not entirely helpful, but should allow narrowing the results down a bit.
Top comments (0)