small fix

This commit is contained in:
Harry Bomrah 2017-04-13 15:42:29 +08:00
parent b32bf6527f
commit 11468d7c99
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ class VlogsController < ApplicationController
end end
def widget def widget
video = VLog.all.filter_by_widget_categories.sample(1).first vlog = VLog.all.filter_by_widget_categories.sample(1).first
if vlog.type == "upload" && !vlog.v_log_video.nil? if vlog.type == "upload" && !vlog.v_log_video.nil?
video = "<video src='#{vlog.v_log_video.video.url}' controls> Your browser does not support the <code>video</code> element.</video>" video = "<video src='#{vlog.v_log_video.video.url}' controls> Your browser does not support the <code>video</code> element.</video>"
elsif vlog.type == "youtube" && !vlog.youtube_link.nil? elsif vlog.type == "youtube" && !vlog.youtube_link.nil?