Answer the question
In order to leave comments, you need to log in
How do thumbnails work in paperclip gem?
Hello.
I use paperclip for avatars, it works ok. But now there was a problem with adding a new size for the thumbnail, I needed to display a very small size avatars on a separate page, for this I added the following code to the user model
has_attached_file :avatar, :styles => { :medium => "300x300>", :thumb => "160x160#", :small => "80x80" }, :default_url => "/images/:style/missing.png"
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question