The RESTful edit
route should use a GET verb. The vanilla resource#edit
method doesn't change the database, but simply puts up a form populated with the selected resource's values. Submitting that form to resource#update
(using the PUT verb) does the work of actually changing the database.
So, your users#edit
method isn't doing what a standard RESTful edit action does. I'd suggest using the Standard Way unless you have a really good reason and you document that reason carefully. I concur that spending time looking at rails routing guides and a vanilla controller would be useful.