Rails routing: param option

https://railsdoc.github.io/classes/ActionDispatch/Routing/Mapper/Base.html#method-i-match-label-Options

resources :users, param: :name
GET       /users(.:format)
POST      /users(.:format)
GET       /users/new(.:format)
GET       /users/:name/edit(.:format)
GET       /users/:name(.:format)
PATCH/PUT /users/:name(.:format)
DELETE    /users/:name(.:format)