search for: roles_path

Displaying 1 result from an estimated 1 matches for "roles_path".

Did you mean: notes_path
2007 Feb 20
1
Urls generated by nested map.resources
.../ teams/1 is irrelevent. My understanding is that urls should be unambiguous - how would such a url be different from GET /roles/1 ? So my questions are: 1. Am I "right" or have I misunderstood something? 2. The two map.resources entries in routes.rb seem to clash - when I try and call roles_path(@team) in my "new" template, rails complains - i.e. it won''t let me output POST /teams/1/role. I can get around this by using a hidden field in the "new" form, but this seems really hacky. Is there any other way around this? 3. I don''t want the /teams/1/roles/1...