Skip to content

Instantly share code, notes, and snippets.

@mrdoornbos
Created July 22, 2008 13:47
Show Gist options
  • Save mrdoornbos/958 to your computer and use it in GitHub Desktop.
Save mrdoornbos/958 to your computer and use it in GitHub Desktop.
has_attached_file :photo, :styles => { :thumb=> "100x100",:small => "150x150>" } ,
:url => "/images/show/:id/:style/",
:path => "#{RAILS_ROOT}/attachments/:class/:id/:style/:basename.:extension"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment