Embedded Youtube video in a Ruby on Rails page
- by dan
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?