Bootstrap 3面板不在导轨中工作

时间:2015-01-28 09:37:33

标签: ruby-on-rails-3 twitter-bootstrap twitter-bootstrap-3 panel

我想在rails app中使用Twitter Bootstrap创建面板。

<div class="panel panel-default">
  <div class="panel-heading">Panel heading without title</div>
  <div class="panel-body">
    Panel content
  </div>
</div>

根据官方文件,我们会这样:

enter image description here

但我只是得到了文字。

Panel heading without title
Panel content

希望有人可以帮助我,提前谢谢!

1 个答案:

答案 0 :(得分:1)

编辑Gemfile。

# gem "twitter-bootstrap-rails" 
gem 'twitter-bootstrap-rails', :git => 'git://github.com/seyhunak/twitter-bootstrap-rails.git' # install the lastest version

然后bundle install安装最新版本。