I am trying to remove the catch-all or default route from the industrial rails application. I am interested in supporting the work of collecting a log of its use so that I can replace it with the corresponding hard-coded routes.
So, given that I have the following default route line in my config/routes.rb
.
match '/:controller(/:action(/:id))'
How can I create or retrieve a log every time this route hits. This log should ideally include only requests actually processed by this route along with the parameters, and it will need to leave the route itself as normal.
source share