public
Last active

  • Download Gist
gistfile1.rb
Ruby
1 2 3 4 5 6 7 8 9 10
has_attached_file :media, {
:url => "/tracks/:id/:style.:format",
# Should I get rid of media access token
:path => ":rails_root/tracks/:id/:style.:format",
:processors => [:ffmpeg],
:styles => {
:mp3 => { :format => 'mp3' },
:ogg => { :format => 'ogg' }
}
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.