Displaying 1 result from an estimated 1 matches for "copy_to_s3".
Did you mean:
  copy_to_fd
  
2010 Aug 08
2
paperclip save to disk and s3
I have a standard Paperclip setup that saves a file to my disk.  In
addition I would also like the file saved to my amazon s3 bucket.
[code]
after_save :copy_to_s3
  def copy_to_s3
   has_attached_file :photo,
   :storage => :s3,
   :s3_credentials => "#{RAILS_ROOT}/config/s3.yml",
   :styles => {
   :thumb => "100x100#",
   :small => "750x750>" }
  end
[/code]
This is giving the error: undefined method `h...