2

我不是以英语为母语的人,但如果你是,你会如何命名这个 Rails ActiveRecord 连接模型“???” 以语义方式?

User has_many :blogs, through: ???
User has_many ???

??? belongs_to :user
??? belongs_to :blog

Blog has_many :owners, class_name: 'User', through: ???
Blog has_many ???

“Blogger”之类的东西听起来不太好:用户 has_many :bloggers

4

1 回答 1

1

我想我会选择“作者身份”。对我来说,“博客”是写博客的过程。当然,重要的是选择的词对你来说是有意义的,因为你是需要记住与他们一起工作时它意味着什么的人。

于 2012-01-10T17:10:43.800 回答