I think they are called tool tips…
I have view code that looks like this…
<%= link_to ‘I’, :action => ‘edit_innoculations’, :id => personnel %>
Is there an option (I don’t see it in api) to have tool tips for a
link_to ?
Craig
I think they are called tool tips…
I have view code that looks like this…
<%= link_to ‘I’, :action => ‘edit_innoculations’, :id => personnel %>
Is there an option (I don’t see it in api) to have tool tips for a
link_to ?
Craig
You can use the ‘title’ tag of the tag (untested, but should work):
<%= link_to “Link”, {action => ‘edit_innoculations’, :id =>
personnel}, {:title => “Tooltip text goes here”} %>
Cheers,
-DF
Yeah - that worked (after changing action to a symbol :action)
Thanks
Craig
Oops, yeah - sorry, typo
-DF
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs