这个问题可能很常见,但我仍然坚持。我的要求基本上是我需要在定位标记中附加一个范围。我什至尝试了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