Can we make just one restful action singular?
Here's my situation.
I have a user model. Hence:
ActionController::Routing::Routes.draw do |map|
But now the problem is whenever a user wants to edit his profile the
corresponding path for this job will be /users/:id/edit . Now it's
needless to say that using this mechanism is not at all secure since the
:id can be changed by the user in the url. That would save those changes
in some other user's record. However that is not the issue here since
that has been taken care of in:
@user = current_user
So now generating /users/:id/edit is futile. How can I generate
/users/edit ??? However I want to keep it restful.