javascript - Play music file with Rails -


I want the user to give me a URL that ends with the MP3 extension and played in the show Is Page

I use scaffolding to create a new page for submitting a URL, and in the show page, I want this URL to run the associated media file:

< pre> & lt; P & gt; & Lt; Strong & gt; Music URL: & lt; / strong> & lt;% = @ profile_music.music_url% & gt; & Lt; / P & gt;

If this was a normal HMTL page, then I would use it:

  & amp; the lift; Embed SRC = "url.mp3" width = "360" height = "165" hidden = false AUTOSTART = true loop = "false" volume = "60" & gt;   

So I need something like this:

  & lt; Embed SRC = @ profile_music.music_url width = "360" height = "165" HID = false AUTOSTART = true loop = "false" volume = "60" & gt;    

Use this:

  & lt; Embed SRC = "& lt;% = @ profile_music.music_url%> & gt; Width = "360" height = "165" hidden = false AUTOSTART = true loop = "false" volume = "60" & gt;   

& lt;% = @ profile_music.music_url% & gt; will be interpreted by ARB with the actual content.

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -