0
不知道爲什麼這不起作用。它工作完美,然後我重新啓動服務器。我得到一個無路由錯誤:路由嵌套路由丟失
No route matches {:action=>"new", :controller=>"issues"}
這裏是我想打電話給助手:
<%= link_to "Add Issue", new_app_issue_path %>
和我的路線文件:
resources :apps do
resources :issues
end
爲什麼它會打破所有的突然?我明明有路線:
app_issues GET /apps/:app_id/issues(.:format) {:action=>"index", :controller=>"issues"}
POST /apps/:app_id/issues(.:format) {:action=>"create", :controller=>"issues"}
new_app_issue GET /apps/:app_id/issues/new(.:format) {:action=>"new", :controller=>"issues"}