LoginSignup
0
0

More than 5 years have passed since last update.

Railsの学習メモ ~bootstrapの導入

Posted at

アプリケーションのデザインにbootstrapを利用させてもらう。

bootstrapの導入

Gemfileにgemを追記

Gemfile
gem 'bootstrap-sass'

インストール

$ bundle install

続いて application.scss にbootstrapを利用するための記述を追記

app/assets/stylesheets/application.scss
@import "bootstrap-sprockets";
@import "bootstrap";

 aplication.js に下記を追記

app/assets/javascripts/application.js
//= require bootstrap-sprockets

これでbootstrapの導入はできたはず。

0
0
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
0
0