Skip to content

Instantly share code, notes, and snippets.

@urbanautomaton
Created March 22, 2011 15:17
Show Gist options
  • Save urbanautomaton/881390 to your computer and use it in GitHub Desktop.
Save urbanautomaton/881390 to your computer and use it in GitHub Desktop.
class User < ActiveRecord::Base
has_attached_file :image,
:styles => {
:large => "280x280#",
:medium => "130x130#",
:small => "50x50#",
:tiny => "30x30#" },
:processors => [:thumbnail, :timestamper],
:date_format => "%Y%m%d%H%M%S"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment