add back the missing end to photos_controller;
update database.yml;
update routes;