ruby code inside quotes
Posted
by
chief
on Stack Overflow
See other posts from Stack Overflow
or by chief
Published on 2011-12-01T01:47:58Z
Indexed on
2011/12/01
1:51 UTC
Read the original article
Hit count: 127
html
|ruby-on-rails
I would like to embed videos and have managed to to do so by manually coding the url in where needed. If my url is stored in <%= @vid.url %>, how can I use that string for the value and src parameter?
<object width="480" height="385"><param name="movie" value="http://www.youtube.com/videos/abc123"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/videos/abc123" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object>
© Stack Overflow or respective owner