I am a Rails newbie and trying to code a rails website which one can upload a video and edit it ofcourse.
At first, I follow Rails example and successfully upload a video, very nice.
My problem is, I make an edit button, like this button.Update button
I upload some videos to wistia.com
, and paste the words after medias
to video
. For example, the link is https://anhbui2904.wistia.com/medias/6ixv9su5ii
then I copy and paste 6ixv9su5ii
to the blank video
What I want is, when I push the update course
, the video will change. But nothing changed.
Here is my code at app/views/courses/show.html.erb
<div class="card-image">
<iframe src="//fast.wistia.net/embed/iframe/avk9twrrbn" allowtransparency="true" frameborder="0" scrolling="no" class="wistia_embed" name="wistia_embed" allowfullscreen mozallowfullscreen webkitallowfullscreen oallowfullscreen msallowfullscreen width="100%" height="349"></iframe>
<script src="//fast.wistia.net/assets/external/E-v1.js" async></script>
</div>
I used this code to display a video.
Could you please give me some ideas? Thank you very much.
<%= @course.description %>