1

I want create panels with Twitter Bootstrap in rails app.

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

According to the official doc, we will get like this:

enter image description here

but I just get the text.

Panel heading without title
Panel content

Hope someone can help me, thanks in advance!

pangpang
  • 8,581
  • 11
  • 60
  • 96
  • 1
    I can't check right now, but it definitively worked some time ago. May you add exact version of the bootstrap which you are using. And try to update to the latest stable version (if you are using other one). – bronislav Jan 28 '15 at 09:41
  • How are you including Bootstrap? Gem? CDN? Less? Sass? – cvrebert Jan 28 '15 at 22:43
  • it works when I update to the latest version, thanks. – pangpang Jan 29 '15 at 02:40

1 Answers1

1

Edit the Gemfile.

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

then bundle install to install the latest version.

pangpang
  • 8,581
  • 11
  • 60
  • 96