hello guys i am using attachment_fu for product images i have hundreds of products and their images with thumbnails :thumbnails => { :thumb => ''100x100>'' } now we have decided to have thumbnails of size 50x50> only. how do i destroy the existing thumbnails for images and regenerate the new thumbnails i shud be doing something like this product_images.find(:all) for each prod image destroy the thumnnail. ---what method create new thumbnail ---what method end pls help jags -- 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 -~----------~----~----~----~------~----~------~--~---
Jags Rao wrote:> > hello guys > > i am using attachment_fu for product images > i have hundreds of products and their images > with thumbnails :thumbnails => { :thumb => ''100x100>'' } > > now we have decided to have thumbnails of size 50x50> only. > > how do i destroy the existing thumbnails for images > and regenerate the new thumbnails > > product_images.find(:all) > for each prod image > destroy the thumnnail. ---what method > create new thumbnail ---what method > endlooks like substruct did something somewhat similar once: http://code.google.com/p/substruct/source/browse/trunk/plugins/substruct/db/migrate/025_user_upload_switch_to_attachment_fu.rb # creates a few on the fly -- 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 -~----------~----~----~----~------~----~------~--~---