Create a gist now

Instantly share code, notes, and snippets.

anonymous /gist:491822
Created Jul 27, 2010

Embed
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