Ruby On Rails : Routing Concerns
One of the fundamental principles Rails developers follow is Donโt Repeat Yourself (DRY).๐ We can use concerns, to avoid repeating the same routes defined. To eliminate code duplication rails introduced the routing method :concern. The :concerns option can accept one or more routing concerns.