**嗨,我正在使用.Net 6&VisualStudio2022社区。我通过数据注释进行的模型验证对所有HTML标记都有效,我只想对某些字段使用..**public class Student public int Id { get;但是只需要名称字段&在模型中提到。**请给我一个解决方案,我如何才能限制一些需要填充的字段,一些字段是不需要的。谢谢
尝试从子模型获取父模型时出现问题,如下所示: Post模型 class Post < ApplicationRecord accepts_nested_attributes_for :post_votes
end PostVote模型 class PostVote < ApplicationRecordTemplate::Error (undefined method `post' fo