Say that I have a User
model and a Book
model. A user has many books.
Given that I would want these 3 operations:
- Add a book to the current user
- See all books the current user has
- See all books
我应该创建哪些控制者? 我感到,像第2号这样的是用户控制器,第3号是书记控制器。 这是否有意义?
第1号是哪里? “正确方式”是什么? “最普遍的方法”?