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.
Craig W. (Guest)
on 2006-06-04 05: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
David F. (Guest)
on 2006-06-04 05: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
Craig W. (Guest)
on 2006-06-04 05:59
(Received via mailing list)
Yeah - that worked (after changing action to a symbol :action)

Thanks

Craig
David F. (Guest)
on 2006-06-04 06:08
(Received via mailing list)
Oops, yeah - sorry, typo :)

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