QueryingParentModelwithrespecttocurrentuser'sChildModel根据设计文档,current_user的相关记录总是可用的,尽管我以前读过。例如:current_user.commentscurrent_user.profile_images真正让我烦恼的是:Post.rb1234567classPost belongs_to:user has_many:postsettings,inverse_of::post accepts_nested_attributes_for:postsettings用户.rb1234classUserhas_m