I have set up a test applications and have setup devise to take care of the authentication, additionally I have set up a component where they are sent to a create profile page after registration which works well.
The problem I have is when a logged in user goes to edit they’re profile it is easy for then to change the query string and access another users data –
http://localhost:3000/profiles/1/edit
the question i have is how do I lock this down to the current user so that can only edit they’re data?
Robbie
I would go for a
before_filter.Assumptions:
User