Skip to content Skip to sidebar Skip to footer

Twitter Bootstrap .popover() Function Not Working In Rails

I am trying to start using Twitter Bootstrap for Rails. The popover() function is not working at all. Nothing happens. layouts/application.html.erb:

Solution 1:

The issue is with your selector you're using:

$("a[rel=popover]")

That jQuery selector matches the entire rel attribute, and according to a Bootstrap bug report, Rails adds additional attributes to the rel tag, like nofollow.

Try using this selector instead:

$("a[rel*=popover]")

Post a Comment for "Twitter Bootstrap .popover() Function Not Working In Rails"