fixing p-controller for real
This commit is contained in:
parent
65c22020e8
commit
53b38a3bca
1 changed files with 1 additions and 1 deletions
|
|
@ -105,7 +105,7 @@ class PhotosController < ApplicationController
|
||||||
flash[:notice] = I18n.t 'photos.destroy.notice'
|
flash[:notice] = I18n.t 'photos.destroy.notice'
|
||||||
|
|
||||||
|
|
||||||
if photo.status_message
|
if photo.status_message_id
|
||||||
respond_with :location => photo.status_message
|
respond_with :location => photo.status_message
|
||||||
else
|
else
|
||||||
respond_with :location => person_photos_path(current_user.person)
|
respond_with :location => person_photos_path(current_user.person)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue