我想在我的 rails 项目中手动使用 twitter bootstrap。
但是我遇到了这个错误,并且引导程序的某些功能不起作用。
如果您帮助我,我将不胜感激。谢谢你。
控制台错误
未捕获的类型错误:无法读取未定义 bootstrap-popover.js:38
(匿名函数)bootstrap-popover.js:38
(匿名函数)bootstrap-popover.js:115的属性“构造函数”
应用程序/视图/应用程序/index.html.erb
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<%= stylesheet_link_tag "bootstrap" %>
<%= stylesheet_link_tag "bootstrap-responsive" %>
<%= javascript_include_tag "jquery" %>
<%= javascript_include_tag "bootstrap" %>
<%= javascript_include_tag "bootstrap-transition" %>
<%= javascript_include_tag "bootstrap-alert" %>
<%= javascript_include_tag "bootstrap-modal" %>
<%= javascript_include_tag "bootstrap-dropdown" %>
<%= javascript_include_tag "bootstrap-scrollspy" %>
<%= javascript_include_tag "bootstrap-tab" %>
<%= javascript_include_tag "bootstrap-tooltip" %>
<%= javascript_include_tag "bootstrap-popover" %>
<%= javascript_include_tag "bootstrap-button" %>
<%= javascript_include_tag "bootstrap-collapse" %>
<%= javascript_include_tag "bootstrap-carousel" %>
<%= javascript_include_tag "bootstrap-typeahead" %>
<!-- as example, which doesn't work, somehow -->
<i class="icon-search icon-home"></i>
我相信所有必要的 js 和 css 文件都在
- ./app/assets/images
- ./app/assets/javascripts
- ./app/assets/样式表