Couldn't find Photo with ID=index

Hi all,

I need help in this problem.

thanks in advance
Mostafa Badawi

Sounds like a routing problem. Take a look in your config/routes.rb
file and see what it says about ‘photos’ in there. You might need a
line like
map.resource :photos
or something like that.

What’s happening is probably that Rails is trying to interpret /photos/
index as a :controller/:id type of URL. Understood in this framework,
the controller would be ‘photos’ and the id would be ‘index’.