search for: save_to_storage

Displaying 3 results from an estimated 3 matches for "save_to_storage".

2009 Feb 17
1
cloning an already uploaded image using attachment_fu
...xample 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 return c end But the end result is an exception at n.temp_path = thumb.create_temp_file saying that undefined method temp_path (probably for the thumbnai...
2006 Sep 08
4
Does acts_as_attachment :storage => :db_system work?
I found the post about needing to install acts_as_attachement_1_1_6 if you are not on edge rails. But I am having trouble getting db_system storage to work. As far as I can tell in from the database, things are working, but I don''t see how my model table hooks up with the db_files table so I am having trouble altering the image_tag from the tutorial
2009 Jul 24
1
Attachment_fu - watermark tmp file before saved to S3
Hi there, I''d like to use RMagick to watermark an image in the tmp directory before Attachment_fu saves it to Amazon S3. I took a look at the callbacks available in attachment_fu. There''s an ''after_attachment_saved'' method but this would be too late, and a ''before_thumbnail_saved'' but this is no good because it''s for thumbnails. I