Ruby on Rails: display user profile only if condition is true
I want to only have user's profile be public if the user has completed a
few tasks.
I have devise set up in my rails application, and right now if there's a
new account, ie: localhost:3000/users/1, localhost:3000/users/2,
localhost:3000/users/3, etc... these links will work.
How do I make it all private until users have a few items filled in the
users database.
Thanks
No comments:
Post a Comment