我为 add_filter 菜单找到了这个html:
<li class="dropdown" style="float:right">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">
Add filter
<b class="caret"></b>
</a>
<ul class="dropdown-menu" id="filters" style="left:auto; right:0;">
<li>
<a data-field-label="Title" data-field-name="title" data-field-options="" data-field-type="string" data-field-value="" href="#">Title</a>
</li>
<li>
<a data-field-label="Book type" data-field-name="book_type" data-field-options="" data-field-type="string" data-field-value="" href="#">Book type</a>
</li>
<li>
<a data-field-label="Category" data-field-name="category" data-field-options="" data-field-type="belongs_to_association" data-field-value="" href="#">Category</a>
</li>
<li>
<a data-field-label="Detail" data-field-name="detail" data-field-options="" data-field-type="text" data-field-value="" href="#">Detail</a>
</li>
</ul>
</li>
当我点击Add Filter时,控制台会记录:
Uncaught TypeError: Object [object Object] has no method 'tooltip'
请就此问题给我一些建议。
答案 0 :(得分:0)
哦,对不起噪音,我发现了我的问题 gem twister-bootstrap-rails与rails_admin不兼容。只需删除GEMFILE中的这一行,然后rake assets:clean,最后再次运行bundle,javascript就可以了。 我的答案可在Github
找到