方法一
Actually you don't need gem for this, here is the step to install Bootstrap 3 in RoRDownload BootstrapCopy:bootstrap/dist/css/bootstrap.css and bootstrap/dist/css/bootstrap.min.cssTo: vendor/assets/stylesheetsCopy:bootstrap/dist/js/bootstrap.js and bootstrap/dist/js/bootstrap.min.jsTo: vendor/assets/javascriptsUpdate: app/assets/stylesheets/application.css by adding:*= require bootstrap.minUpdate: app/assets/javascripts/application.jsby adding://= require bootstrap.minWith this you can update bootstrap any time you want, don't need to wait gem to be updated. Also with this approach assets pipeline will use minified versions in production.
方法二
gem 'twitter-bootstrap-rails', github: 'seyhunak/twitter-bootstrap-rails', branch: 'bootstrap3'