<% content_for :javascript do %> $("#jpId<%=audio.id%>").jPlayer( { ready: function () { $(this).jPlayer("setMedia", { webma: "<%= audio_url(audio, :format => 'webma') %>" // Defines the webma url }); }, supplied: "webma", preload: "none", swfPath: "assets", cssSelectorAncestor: "#jp_interface_<%=audio.id%>" }); <% end %> <%= div_for audio, :class => 'content_size' do %>
<% if audio.file_processing %>
<%= t('audio.processing')%>
<% else %>
<% end %> <% end %>