RS IZ Removing the destroy link from photos

This commit is contained in:
ilya 2010-07-23 15:59:42 -07:00
parent f866872d7a
commit 79aa12ee67

View file

@ -14,8 +14,9 @@
|
= link_to_next @photo, @album
%p
= link_to "Destroy", @photo, :confirm => 'Are you sure?', :method => :delete
-if mine?(@photo)
%p
= link_to "Destroy", @photo, :confirm => 'Are you sure?', :method => :delete
%p
= link_to "<< back to album", album_path(@album)