I have the following in my routes.rb:
resources :projects do
resources :photos, :permissions
collection do
get 'yourcurrentprojects', 'userprojectpermission'
end
end
But when I do, projects/3/permissions/userprojectpermission开发者_运维百科 i get a routing error: No route matches "/projects/3/permissions/userprojectpermission"
Did I define this wrong? Thank you for your help
I think you should use projects/permissions/userprojectpermission
.
精彩评论