Attached is a Ruby on Rails file attachment tool that lets users upload to the cloud. The gem supports AWS, Google and Rackspace for storage networks by default. It is influenced (and copied) from Paperclip and makes heavy use of the incredibly awesome Fog library.
== Requirements
The gem is tested with:
Ruby on Rails 4.1.6
Ruby 2.1.6
Ruby 2.0.0
Ruby 1.9.3
JRuby
== Installation
gem install attached
== Optional
brew install imagemagick
brew install lame
== Examples
Migration:
rails g model video name:string encoding:attachment
class CreateVideo < ActiveRecord::Migration
def self.up
create_table :videos do |t|
t.string :name
t.attachment :encoding
t.timestamps
end
end
def self.down
drop_table :videos
end