Hello, I have a model photo
which allows me to load URLs like
- /photos
- /photos/2
- /photos/2/edit
Edit allows the user to change the image, but I want a different kind of edit for permission type stuff specific to the app I'm building, which would look like:
- /photos/2/updatesettings
So in the photos controller I added "def updatesettings ...."
And in the routes I added:
resources :photos do
collection do
get 'updatesettings'
end
end
But I'm getting an error: "Routing Error No route matches"
Suggestions? thanks