开发者

Give user access to specific / followed articles?

开发者 https://www.devze.com 2023-04-12 16:32 出处:网络
So heres what I have and want to do.. I have a main \"users\" table. And then a \"records\" table. So when a user signs in, they see their records, but they only have access to specific records. Does

So heres what I have and want to do.. I have a main "users" table. And then a "records" table. So when a user signs in, they see their records, but they only have access to specific records. Does anyone know a good method/technique (or know of a good tutorial) as to how to assign table rows to a user (I its r开发者_运维技巧elational database).

A similar concept would be like twitter, how users follow others.


Take a look at Rails for Zombies. It's an online tutorial that creates a twitter like application for zombies. If I recall correctly it will cover your question and give you a good background on the inter relationships of your models as they pertain to the database.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号