small fix
This commit is contained in:
parent
b32bf6527f
commit
11468d7c99
|
@ -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?
|
||||||
|
|
Loading…
Reference in New Issue