gem traceroute is a simple gem to:

  • Find controllers without linked routes
  • Find routes without linked controller actions

Install #

console

bundle add traceroute

Execute #

rake traceroute

Ignore routes or controller actions #

console

echo > .traceroute.yaml

.traceroute.yaml

ignore_unused_routes:
  - ^rails/conductor/action_mailbox/inbound_emails#edit
  - ^rails/conductor/action_mailbox/inbound_emails#update
  - ^rails/conductor/action_mailbox/inbound_emails#update
  - ^rails/conductor/action_mailbox/inbound_emails#destroy
ignore_unreachable_actions:
  - ^devise\/
  - ^devise_invitable\/