For example. There is such a route:
resources :cats
He will give the following ways:
/cats /cats/:id /cats/:id/edit ...
Is it possible to redefine it so that instead of id it should receive from the database, for example, its name? That is, the paths of such routes:
resources :cats do resources :kittens end
Looked like this:
/cats/:cat_name/kitten/:kitten_name /cats/:cat_name/kitten/:kitten_name/edit ...
And another related question. Is it possible to create resources without additional words in the paths? Again, for example, if there are such routes:
resources :cats do resources :kittens end
So that the paths look like this:
/:cat_name/:kitten_name /:cat_name/:kitten_name/edit ...
Or do you have to manually make such paths with get, post, patch, and delete?
This was something that both Rails Guides and Rails Api were making. It seems that I did not find anything sensible, but it is quite likely that I missed something or did not understand it so well.