对不起,这是一个幼稚的问题。
我有一个嵌套资源深度 2 级。
  resources :programs do  
    resources :questions do
      resources :answers
    end
  end
因此,要使索引、编辑等页面正常工作,我需要修改视图中、、按钮的link_to属性。showeditnew
例如,
<%= link_to '显示',edit_question_path %>
我应该如何将其重命名edit_question_path为?应该是edit_question_program_path还是应该是edit_program_question_path。我对这个约定感到困惑,如果我们有程序->问题->答案,那么约定应该如何在link_to's 路径中?请帮忙