Reading the Usage section of the README, it appears that all you need to do is to add this file to your vendor/assets/javascripts folder, add a reference to this script into your application.js manifest, then add the data-hover="dropdown" attribute either in place of data-toggle="dropdown" or alongside it (so both events cause the dropdown to appear).
If you're adding this to your link with the normal Rails view helpers, then you already have
link_to(nil, 'Account', class: 'dropdown-toggle', data: { toggle: 'dropdown' })
Change that to read
link_to(nil, 'Account', class: 'dropdown-toggle', data: { toggle: 'dropdown', hover: 'dropdown' })
and you're done.
Walter
>
> Thanks,
> Joe
>
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
rubyonrails-ta...@googlegroups.com.
> To post to this group, send email to
rubyonra...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/rubyonrails-talk/6df61ead-8b0b-4ce7-9981-4aefef7d77b6%40googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.