rails 安装bootstrap

rails 提供了bootsrap的gem bootstrap-sass

Gemfile

# Use jquery as the JavaScript library
gem 'jquery-rails'

# Bootstrap
gem 'bootstrap-sass'

将 application.css 改为 application.scss

application.scss

 *= require_tree .
 *= require_self
 */

@import "bootstrap-sprockets";
@import "bootstrap";

application.js

//= require jquery
//= require jquery_ujs
//= require turbolinks
//= require_tree .
//= require bootstrap-sprockets

你可能感兴趣的:(ralis)