0
Hello. I am setting up a system for registration and update, it would work as follows
User logs in and receives a screen to edit their own registration, only.
But I’m having a doubt. As I’m new at Rails, I have come to know tools for authorization and authenticity now, such as the.
Consider the following url
host/partner/id/edit
How to make only the user who has the same url id be able to edit this record?
Example:
host/partner/200/edit
- only the user with id 200 could have access to this page.
It’s doubtful stupid, but as I said, I’m a beginner in Rails.
Thanks.