Update text_marquees_controller.rb

fix error
This commit is contained in:
chiu 2019-09-05 17:51:19 +08:00
parent 53315f52f9
commit 7d7aef4b5a
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ class TextMarqueesController < ApplicationController
"text" => mqt.title,
"speed" => mqt.speed,
"url" => (mqt.url || ""),
"content" => (mqt.url.nil? ? "<a speed='#{speed}'>#{mqt.title}</a>" : "<a href='#{mqt.url}' target='_blank' speed='#{speed}'>#{mqt.title}</a>")
"content" => (mqt.url.nil? ? "<a speed='#{mqt.speed}'>#{mqt.title}</a>" : "<a href='#{mqt.url}' target='_blank' speed='#{mqt.speed}'>#{mqt.title}</a>")
}
end
{