Hi there.
Im usig attachement_fu for uploading my files to the site. I have
followed in parts the guide at:
http://khamsouk.souvanlasy.com/2007/5/1/ajax-file-uploads-in-rails-using-attachment_fu-and-responds_to_parent
It is creating the thumbnails ok, but it is not resizing them as it
should.
I have used the following code:
************
has_attachment :storage => :file_system,
:max_size => 500.megabytes,
:resize_to => [300, 300],
:thumbnails => { :thumb => [200, 200], :icon => [100,
100], :tiny => [50, 50] },
:processor => :MiniMagick, # attachment_fu looks in
this order: ImageScience, Rmagick, MiniMagick
:path_prefix => "/public/uploads/"
validates_as_attachment # ok two lines if you want to do validation, and
why wouldn''t you?
************
I have also tried using it width :thumb => "200x200>" this did
not work
wither. What am i doing wrong?
- Emil
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---