开发者

Give user access to specific / followed articles?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜