Hello. I'm setting up a system for registration and updating, it would work as follows
User logs in and receives a screen to edit his own register, only.
But I have a question. As I am new to Rails , I have been getting tools for authorization and authentication now, such as devise and pundir.
Consider the following url
host/partner/id/edit
How to make only the user who has the same id of the url be able to edit this record?
Example:
host/partner/200/edit
- only the user with id 200 could have access to this page.
It is doubtful, but as I said, I am a beginner in Rails.
Thank you.