Return 404 for nonexistent photo on mobiles

This commit is contained in:
Tamas Laszlo Fabian 2013-06-24 15:23:57 +02:00
parent 13fa4af26f
commit 175908e079

View file

@ -7,6 +7,10 @@ class PhotosController < ApplicationController
respond_to :html, :json
def show
@photo = Photo.find(params[:id])
end
def index
@post_type = :photos
@person = Person.find_by_guid(params[:person_id])