Embedded Youtube video in a Ruby on Rails page
Posted
by
dan
on Stack Overflow
See other posts from Stack Overflow
or by dan
Published on 2010-12-25T21:13:52Z
Indexed on
2010/12/25
21:54 UTC
Read the original article
Hit count: 178
youtube
Hi,
New to programming. I am trying to embed a YouTube video from a link stored in a database named "Promoter" into a ruby-on-rails page (.erb). I've looked at the source the code turns out, but the object video player does not appear (on heroku here: http://blazing-mountain-574.heroku.com/).
The code in the home.html.erb file:
<h1>Pages#home</h1>
<p>Find me in app/views/pages/home.html.erb</p>
<object width="640" height="385">
<param name="movie" value="<%= sanitize Promoter.first.link %>">
</param><param name="allowFullScreen" value="true"></param
><param name="allowscriptaccess" value="always"></param>
<embed src="<%= sanitize Promoter.first.link %>"
type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="385"></embed></object>
Is there something real simple that I'm missing?
© Stack Overflow or respective owner