Using Tooltips with link_to (Ruby on Rails 3.2.3)

后端 未结 1 392
野性不改
野性不改 2021-01-12 11:26

I have been successful in creating a tooltip for text using code similar to:

text on page
<         


        
相关标签:
1条回答
  • 2021-01-12 11:46

    This way:

    link_to 'Text', '/link', title: 'some title', rel: 'tooltip'
    

    update:

    It's ruby 1.9 syntax. For 1.8 it would be

    link_to 'Text', '/link', :title => 'some title', :rel => 'tooltip'
    
    0 讨论(0)
提交回复
热议问题