Skip to content

Instantly share code, notes, and snippets.

@jbynum
Created February 26, 2010 21:52
Show Gist options
  • Save jbynum/316207 to your computer and use it in GitHub Desktop.
Save jbynum/316207 to your computer and use it in GitHub Desktop.
def playlist
list = []
songs = Song.all
songs.each do |s|
list.push([trackinfo => "#{s.artist.name} | #{s.name}", mp3 => "#{s.mp3.url}"])
end
return list.to_json
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment