Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class PokerSiteImage < ActiveRecord::Base
- belongs_to :poker_site
- has_attachment :content_type => :image,
- :storage => :file_system,
- :max_size => 1.megabytes,
- :thumbnails => {:small => '80x80'},
- :path_prefix => 'public/resources/poker_site_images'
- validates_as_attachment
- end
Add Comment
Please, Sign In to add comment