image uploader does two thumbnails
This commit is contained in:
parent
89a39da99e
commit
55710ffbdb
3 changed files with 6 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -57,5 +57,4 @@
|
|||
= my_latest_message
|
||||
= yield
|
||||
|
||||
.span-20.last
|
||||
= render "posts/debug"
|
||||
|
|
|
|||
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Reference in a new issue