I am getting a routing error in
No route matches {:action=>"edit", :controller=>"projects"}
running rake routes gives me the following:
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
and the error is coming from projects/new.
Any ideas what’s wrong?
@Thomas Klemm – You got the right answer. Posted here in case anyone else comes looking for a similar error.
NOTE:
edit_user_project_path(or similar) takes 2 arguments, in this case@userand@project.