Recent activity
Subscribe to this feed
Scott Morey asked a question in Schillmania! on November 06, 2009 19:53:
SoundManager2 Rails - Only Last Song PlaysGreetings,
I am trying to implement SoundManager2 into a rail application. See code below.
<% @playlist.tracks.each do |track| %>
<% sound = [[track.title, track.song.url]] %><%= toggle_sound track.title %><%= initialize_sounds(sound, debug=true) %>
<%= track.title %>
<% end %>
The page loads fine with this code, listing each of the tracks on a given playlist and displaying a play button next to each track.
However only, the last track is actually playable.
Clicking on any other, but the last track results in "Name of Track" is an invalid sound ID.
Any ideas on what I am doing wrong or suggestions for alternative solutions would be greatly appreciated.
Thanks,
Scott
Loading Profile...
