image uploader does two thumbnails

This commit is contained in:
danielvincent 2010-07-17 21:10:21 -07:00
parent 89a39da99e
commit 55710ffbdb
3 changed files with 6 additions and 3 deletions

View file

@ -11,7 +11,11 @@ class ImageUploader < CarrierWave::Uploader::Base
%w(jpg jpeg gif png)
end
version :small_thumb do
version :thumb_small do
process :resize_to_fill => [30,30]
end
version :thumb_medium do
process :resize_to_fill => [100,100]
end
end

View file

@ -57,5 +57,4 @@
= my_latest_message
= yield
.span-20.last
= render "posts/debug"

View file

@ -6,7 +6,7 @@
= link_to_person post.person
%b posted a new photo
%br
= link_to (image_tag post.image.url(:small_thumb)), object_path(post)
= link_to (image_tag post.image.url(:thumb_medium)), object_path(post)
%div.time
= link_to(how_long_ago(post), status_message_path(post))