Skip to content

Instantly share code, notes, and snippets.

@luckydev
Created November 20, 2010 20:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luckydev/708137 to your computer and use it in GitHub Desktop.
Save luckydev/708137 to your computer and use it in GitHub Desktop.
paperclip and s3
#example code to use paperclip and s3
has_attached_file :photo,
:style=>{:thumb => "35x35",:medium=>"175x175"},
:storage => :s3,
:s3_credentials => "#{Rails.root.to_s}/config/s3.yml"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment