Assistant
It's called route helper , which means Rails will generate them to help you create resource-based routing structures. I will tell more in a second
-
To explain correctly, Rails is just a framework.
Like all software, this is a series of files downloaded in a specific order. Thus, Rails creates a series of helper methods during the loading process. These “helper” methods can then be used throughout the application to invoke functionality / information as needed:
The Rails framework provides a large number of helpers for working with assets, dates, forms, numbers, and model objects, to name a few. By default, these helpers are available for all templates.
In addition to using standard template helpers, creating custom helpers to extract complex logic or reusable functionality is highly recommended. By default, each controller will include all helpers. These helpers are only available on the controller through .helpers
Route helpers, which are generated from your config/routes.rb , give you the ability to name routes that are resourceful. This may seem strange, but once you understand them, it will help you inexorably.
-
Inventive
To give you more clarity - Rails routes are called resourceful.
This means that they are built around resources. To give you a brief definition of this, you must understand that the resources of your application are data pools that you can add and pull from.
To explain further, since Rails is object oriented . If you are a beginner, this will not mean a lot, but remember this, because when you move on the language / work, you will begin to understand why this is important.
Object-oriented programming places objects in the center of the stream. Typically, you put logic in the center, but with OOP, these are objects. This is very important to us, as it means that everything you do in Rails is based on objects that you can create.
In accordance with the principle
This means that if you want to create a series of routes for the "CRUD" (Create Read Update Destroy) of your objects, Rails will be able to create the routes necessary for this. Here the resources directives come from the routes file:

Hope this helps!