diff --git a/app/controllers/photos_controller.rb b/app/controllers/photos_controller.rb index eda00b144557d56e27535c7de41f90f46a515328..3216fdf4cf8579e651641276a6f8b0677cf10276 100644 --- a/app/controllers/photos_controller.rb +++ b/app/controllers/photos_controller.rb @@ -111,9 +111,7 @@ class PhotosController < ApplicationController respond_with @photo else flash[:error] = I18n.t 'photos.update.error' - @album = @photo.album - set_friends_and_status - render :edit + redirect_to [:edit, @photo] end end end