LoginSignup
6
3

More than 5 years have passed since last update.

Railsにbootstrap-sassを導入

Last updated at Posted at 2016-10-09

Railsに、bootstrap-sassを導入する手順をメモ。基本ドキュメントに書いてある通り。
参考URL: Bootstrap for Sass

① gemのインストール

  1. Gemfileに以下の記述を追加
    gem 'bootstrap-sass', '~> 3.3', '>= 3.3.7'

  2. インストールの実行
    bundel install

② application.cssに記述を追加

1.app/assets/stylesheets/application.cssapplication.scssにリネーム
2.application.scssに以下の記述を追加

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

以上。

6
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
3