Skip to content

Popular Articles by Our Team

Our expert team of designers and developers love what they do and enjoy sharing their knowledge with the world.

Latest Articles by Our Team

Detecting unused routes with Rails 7.1

By Glen Crawford,


When looking at upcoming major releases of projects like Ruby on Rails, it can be easy to get distracted by the big, flashy features, such as Hotwire and encrypted attributes in Rails 7.0. However, sometimes I find myself getting more excited by smaller, more modest additions in upcoming releases. This is the case with the recent merge of a PR to Rails that will form part of Rails 7.1: Add routes --unused option to detect extraneous routes by Gannon McGibbon.

We all know the rails routes command which lists all the routes in your app, detailing their name, HTTP method, path, controller and action. But in a large app with lots of routes that might have seen a rewrite or two or a few years of churn, how do you know which routes are still valid (where "valid" means the controller and action that the route points to exists)?

We Hire Only the Best

reinteractive is Australia’s largest dedicated Ruby on Rails development company. We don’t cut corners and we know what we are doing.

We are an organisation made up of amazing individuals and we take pride in our team. We are 100% remote work enabling us to choose the best talent no matter which part of the country they live in. reinteractive is dedicated to making it a great place for any developer to work.

reinteractive Services

We build stable, well-tested software, built with Ruby on Rails and Javascript. reinteractive provides a complete solution from project scoping, to UX, design, web and mobile development, through to hosting and maintenance. All driven by our seamless, agile project management processes.

We are experts at large, complex and customised solutions. Bring us your ideas, wish list, integration problem or technical need and we will solve it.

AppWorkshop - Consultation & Project Scoping

We work hard to find the right digital solution for you. Through our AppWorkshop we work with you to identify opportunities and engage in expert planning for business-critical applications. The aim is to get your application delivered and operating as fast as possible, with the viewpoint of incrementally adding features as the site matures and grows.

Learn more about AppWorkshop - Consultation & Project Scoping

Get the “reinteractive Review” Monthly Email