我正在使用Ryan Bates的Complex Forms Deep Branch,并试图复制该示例以获得具有两个附加嵌套级别的表单。 SurveyName有许多SurveyQuestions,其中有许多SurveyOptions。 # application_helper (identical to deep branch)
def remove_child_link(name, f)
我有Rails应用程序,其中包含以下模型 - 用户,博客,发布,BlogMembership。 在能力类(因为我使用的访问限制康康舞)我试图限制用户和主持人的博客的访问,但与下面的规则 if user.is? :moderator
can :manage, Post do |post|
post.blog.moderators.include? user
end
e