Skip to content

Instantly share code, notes, and snippets.

@kylefox kylefox/gist:247336
Created Dec 2, 2009

Embed
What would you like to do?
class Photo < ActiveRecord::Base
belongs_to :user
belongs_to :blog :through => :user
has_attached_file :image,
:storage => :s3,
:styles => {
:large => "900x600",
:medium => "500x500",
:small => "240x240",
:square => "100x100#"}
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.