当前位置: 动力学知识库 > 问答 > 编程问答 >

ruby - Rails: Users save they favorite posts

问题描述:

First sorry for my English;

For learning purpose I have create a blog with authentication ( I am using Devise), Now I want that user to be able to save other users posts so when they visit the Saved posts pages they will see posts saved, how can I do it

网友答案:

You can model the association

Business Logic

  • Users can have multiple posts
  • Users can save multiple posts
  • A Post can be saved by multiple users but have one owner
分享给朋友:
您可能感兴趣的文章:
随机阅读: