Skip to content

Instantly share code, notes, and snippets.

@markbao
Created February 20, 2009 01:03
Show Gist options
  • Save markbao/67228 to your computer and use it in GitHub Desktop.
Save markbao/67228 to your computer and use it in GitHub Desktop.
# Paperclip
has_attached_file :file, :storage => :s3,
:s3_credentials => "#{RAILS_ROOT}/config/amazon_s3.yml",
:path => ":attachment/:id/:style.:extension",
:bucket => 'classleaf-development'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment