Link_to tool tips


#1

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


#2

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


#3

Yeah - that worked (after changing action to a symbol :action)

Thanks

Craig


#4

Oops, yeah - sorry, typo :slight_smile:

-DF