Wednesday, August 28, 2013

How to make private and public user's fields in rails?

How to make private and public user's fields in rails?

I want to give public and private options for fields to user. Suppose, I
want to make private to "Birth Date" field, it should not be appeared on
detail page for other user.
I have my customized registration controller in devise. Fields are saving
,updating and showing but I don't know how hide private fields for other
users. I am really confused how to start????

No comments:

Post a Comment