참고: github.com/twbs/bootstrap-rubygem
twbs/bootstrap-rubygem
Bootstrap 4 rubygem for Rails / Sprockets / Hanami / etc - twbs/bootstrap-rubygem
github.com
1. 프로젝트 폴더/Gemfile 에
gem 'bootstrap', '~> 5.0.0.alpha2'
gem 'jquery-rails'
추가
2. assets/javascripts/application.js 에서
//= require jquery3
//= require popper
//= require bootstrap-sprockets
추가
3. custom하려면 assets/stylesheets에 custom.css.scss 파일 생성 후
@import "bootstrap";
하고 커스텀할 내용 작성
프로젝트 폴더에서
bundle install
하면 끝
'ruby on rails' 카테고리의 다른 글
helper_method & application_controller (0) | 2020.11.13 |
---|---|
db table 생성, association 설정 (0) | 2020.11.12 |
rails6에 bootstrap 적용하기 (0) | 2020.11.11 |
deploy on heroku (0) | 2020.11.11 |
DRY code: Don't Repeat Yourself (0) | 2020.11.11 |