Railsに、bootstrap-sassを導入する手順をメモ。基本ドキュメントに書いてある通り。
参考URL: Bootstrap for Sass
① gemのインストール
Gemfileに以下の記述を追加
gem 'bootstrap-sass', '~> 3.3', '>= 3.3.7'
インストールの実行
bundel install
② application.cssに記述を追加
1.app/assets/stylesheets/application.css
を application.scss
にリネーム
2.application.scss
に以下の記述を追加
@import "bootstrap-sprockets";
@import "bootstrap";
以上。