search for: create_clon

Displaying 1 result from an estimated 1 matches for "create_clon".

Did you mean: create_clone
2009 Feb 17
1
cloning an already uploaded image using attachment_fu
...that is attached to a item. The image was uploaded through attachment_fu. Now, I want to reuse the same image for a new item. I tried several tips found online. For example in http://danieloshea.com/articles/254-cloning-images # Create a clone of an image and it''s thumbnails. def create_clone c = self.clone self.thumbnails.each do |thumb| n = thumb.clone n.temp_path = thumb.create_temp_file n.save_to_storage c.thumbnails<<n end c.temp_path = self.create_temp_file c.save_to_storage c.save...