将范围标签附加到锚标签内

问题描述

这个问题可能很常见,但我仍然坚持。我的要求基本上是我需要在定位标记中附加一个范围。我什至尝试了content_tag,但没有给我正确的结果。下面是我的代码

user.friend_party returns  "<a target=\"_blank\" href=\"/friends/430779-Heath\">Heath</a>"

user.friend_party do 
  tag(:span,:data => { 'ot-content' => "#{tooltip.html_safe}",:behavior => 'tooltip','delay-tooltip' => 'true','tooltip-position-my' => 'top-left','tooltip-position-at' => 'bottom-right','tooltip-position-y' => '10','delay' => '500' } )
end

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)