I have a /account
page that routes to users#edit
and the form action is /users/1
. When there are errors, the rendered page is /users/1
. How can make the errors render at /account
again?
If I redirect I lose those errors I need to display.
I suppose if it's a GET then do users#edit
if it's a PUT then do users#update
. Is that the right way? How should I write my routes?