diff --git a/app/controllers/video_pros_controller.rb b/app/controllers/video_pros_controller.rb index 1e8d7da..eb073a3 100644 --- a/app/controllers/video_pros_controller.rb +++ b/app/controllers/video_pros_controller.rb @@ -232,7 +232,7 @@ class VideoProsController < ApplicationController video_postdate = video_image.postdate.to_s video_category = video_image.category_title video_tags = video_image.tags - video_tags = (video_tags.count > 0 ? video_tags.collect{|tag| {video_tag: tag.name}} : [{video_tag: video_category}]) + video_tags = (video_tags.count > 0 ? video_tags.collect{|tag| {"video_tag" => tag.name}} : [{"video_tag" => video_category}]) statuses = video_image.statuses_with_classname video_desc = video_image.desc video_desc_escape = video_desc.gsub('"',""") rescue "" diff --git a/app/views/video_pros/show.html.erb b/app/views/video_pros/show.html.erb index 5295645..6fdb2f8 100644 --- a/app/views/video_pros/show.html.erb +++ b/app/views/video_pros/show.html.erb @@ -23,7 +23,7 @@ video_scale = (video_image.scale ? video_image.scale : 56.25) video_category = video_image.category_title video_tags = video_image.tags - video_tags = (video_tags.count > 0 ? video_tags.collect{|tag| tag.name} : [video_category]) + video_tags = (video_tags.count > 0 ? video_tags.collect{|tag| {"video_tag" => tag.name}} : [{"video_tag" => video_category}]) %>

<%= video_title %>

@@ -43,7 +43,7 @@
<%= video_post_agency %> | <%= video_postdate %>
<% video_tags.each do |video_tag| %> -
<%= video_tag %>
+
<%= video_tag['video_tag'] %>
<% end %>
<%= video_desc %>