Need to have alternate route to create
must work both:
POST /users
POST /users/new
There recomendation from question how to add route without id:
resource :user do
get :me, on: :member
end
Need not user
but users
:
resources :users do
post :new, on: :create
end
crash message:
NameError: undefined local variable or method `on' for #<ActionDispatch::Routing::Mapper:0x0000081022c8c0\>
What is the solution?