MS DG added a safe for viewing photosize

This commit is contained in:
maxwell 2010-07-21 15:08:00 -07:00
parent 0f407b11ed
commit a5f359ef1b
2 changed files with 5 additions and 1 deletions

View file

@ -22,4 +22,8 @@ class ImageUploader < CarrierWave::Uploader::Base
version :thumb_large do version :thumb_large do
process :resize_to_fill => [300,200] process :resize_to_fill => [300,200]
end end
version :scaled_full do
process :resize_to_limit => [700,700]
end
end end

View file

@ -9,7 +9,7 @@
%br %br
#show_photo #show_photo
= link_to (image_tag @photo.image.url), photo_path(@album.next_photo(@photo)) = link_to (image_tag @photo.image.url(:scaled_full)), photo_path(@album.next_photo(@photo))
#photo_pagination #photo_pagination
= link_to "<< previous", photo_path(@album.prev_photo(@photo)) = link_to "<< previous", photo_path(@album.prev_photo(@photo))