Forum: Ruby on Rails link_to tool tips

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
C1e5a9e9344b6d31b9df7303e6dc378a?d=identicon&s=25 Craig White (Guest)
on 2006-06-04 03:22
(Received via mailing list)
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
6c27f78ab0eee78732ae54e8b8718b84?d=identicon&s=25 David Felstead (Guest)
on 2006-06-04 03:37
(Received via mailing list)
You can use the 'title' tag of the <a> tag (untested, but should work):

<%= link_to "Link", {action => 'edit_innoculations', :id =>
personnel}, {:title => "Tooltip text goes here"} %>

Cheers,

-DF
C1e5a9e9344b6d31b9df7303e6dc378a?d=identicon&s=25 Craig White (Guest)
on 2006-06-04 03:59
(Received via mailing list)
Yeah - that worked (after changing action to a symbol :action)

Thanks

Craig
6c27f78ab0eee78732ae54e8b8718b84?d=identicon&s=25 David Felstead (Guest)
on 2006-06-04 04:08
(Received via mailing list)
Oops, yeah - sorry, typo :)

-DF
This topic is locked and can not be replied to.