Skip to content

Instantly share code, notes, and snippets.

Created July 27, 2010 06:06
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 anonymous/491822 to your computer and use it in GitHub Desktop.
Save anonymous/491822 to your computer and use it in GitHub Desktop.
has_attached_file :photo,
:storage => :s3,
:s3_credentials => "#{RAILS_ROOT}/config/s3.yml",
:path => ":attachment/user/:id/:style.:extension",
:styles => {
:thumb=> "48x48#",
:small => "73x73#",
:profile => "248x248>" },
:default_url => "/images/:attachment/defaults/user_avatar_:style.gif"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment