Show hover text on a link
To show text when you hover over a link, add that text to the :title attribute of the link, e.g.
<%= link_to "link text", link_location, :title => "this text appears when you hover" %>
Written by Amy Lai
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Rails
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#