2020-06-15 Rails Routing param option
Rails routing: param option
ActionDispatch::Routing::Mapper::Base | RailsDoc(β)
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)