Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

Madhukar's Profile

GitHub User: nmadhukar

Comments by Madhukar

Avatar

Hi,
This video is excellent. However I have a dumb question (a bit new to rails world). I am building a social network site. So I have 2 users User-1 and User-2, Now how do I stop/restrict User-1 from editing or accessing a User-2 Profile (even though User-1 is signed_in). Can you please help me on this. I do not want User-1 to have access to User-2 account. I can put a dirty code to do the checks inside the controller, but would like to know if Devise has any such pre-built functionality to restrict (just like if signed_in?)

Regards
Madhukar