Skip to content

Instantly share code, notes, and snippets.

@willrjmarshall
Created September 27, 2011 00:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save willrjmarshall/1243841 to your computer and use it in GitHub Desktop.
Save willrjmarshall/1243841 to your computer and use it in GitHub Desktop.
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' }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment