我收到路由错误
No route matches {:action=>"edit", :controller=>"projects"}
运行rake routes
给了我以下信息:
edit_user_project GET /users/:user_id/projects/:id/edit(.:format) projects#edit
user_project GET /users/:user_id/projects/:id(.:format) projects#show
PUT /users/:user_id/projects/:id(.:format) projects#update
DELETE /users/:user_id/projects/:id(.:format) projects#destroy
并且错误来自projects/new
.
有什么想法有什么问题吗?