Photo by David Herron on Unsplash

Whenever you’re building a startup application, whether it is a blog of yours, or a forum for your network or an e-commerce store. it is often the case that you’re going to be needing a some sort of a hierarchical categories set-up in your application.

Through this article, you are going to be learning a very efficient way of implementing your hierarchical categories in such a way; that no third-party gem is used whatsoever. it will all be done using solid ruby on rails structure and code. Before we begin, it is critical to vision our final outcome.

Imagine you…


I build SaaS applications using Ruby on Rails.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store