Try this:

resources :projects do
  resources :photos
  resources :permissions do
    collection do
      get 'yourcurrentprojects', 'userprojectpermission'
    end
  end
end

On Oct 11, 1:01 pm, nobosh <[email protected]> wrote:
> Hello, 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

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to