Skip to content

Instantly share code, notes, and snippets.

@dankozlowski
Created February 2, 2011 18:39
Show Gist options
  • Save dankozlowski/808146 to your computer and use it in GitHub Desktop.
Save dankozlowski/808146 to your computer and use it in GitHub Desktop.
class Film < ActiveRecord::Base
belongs_to :user
has_attached_file :video,
:storage => :s3,
:s3_credentials => "#{RAILS_ROOT}/config/s3.yml",
:path => "#{film.user.id}/#{film.title}.:extension",
:bucket => 'filmskillet-films-received'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment