ActsAsAssetable

Usage

Install

sudo gem install acts-as-assetable

Basics

class Post < ActiveRecord::Base
  acts_as_assetable_on :images do
    styles :medium => "300x300>",
      :thumb => "120x120#",
      :tiny => "50x50#",
      :micro => "20x20#"
    storage do
      s3 => {:key => "my_key", :secret => "my_secret"}
    end
  end

  acts_as_assetable_on :videos do
    storage do
      vimeo => {:key => "my_key", :secret => "my_secret"}
      youtube => {:key => "my_key", :secret => "my_secret"}
    end
  end
end

http://github.com/nathancolgate/s3-swf-upload-plugin http://www.therailsway.com/2009/4/23/uploading-files