How to adapt Bootstrap

  1. Type the bootstrap code in the gemfile gem 'bootstrap', '~>4.4.1' gem 'jquery-rails'

  2. Type the following code in lines 13-19 of application.js

//= require rails-ujs //= require activestorage //= require turbolinks //= require_tree . //= require jquery3 //= require popper //= require bootstrap-sprockets

  1. Type the following code in the first line of application.css @import "bootstrap";

  2. Change application.css to application.scss

  3. Write css under @import

If you get the following error RuntimeError in StaticPages#contact <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>

Type the following code in the last line of the boot.rb folder ENV['EXECJS_RUNTIME'] = 'Node'

Recommended Posts

How to adapt Bootstrap
How to deploy Bootstrap on Rails
How to install Bootstrap in Ruby
How to deploy
How to use BootStrap with Play Framework
How to develop OpenSPIFe
How to call AmazonSQSAsync
How to use Map
How to use rbenv
Introducing Bootstrap to Rails 5
How to use letter_opener_web
How to use with_option
How to use fields_for
How to use java.util.logging
Introducing Bootstrap to Rails !!
How to use collection_select
How to use Twitter4J
How to use active_hash! !!
How to install Docker
How to use MapStruct
How to use hidden_field_tag
How to use TreeSet
How to write dockerfile
How to uninstall Rails
How to install docker-machine
[How to use label]
How to make shaded-jar
How to write docker-compose
How to use identity
How to use hashes
How to write Mockito
How to create docker-compose
How to use JUnit 5
How to install MySQL
How to write migrationfile
How to build android-midi-lib
[Ruby on Rails] How to install Bootstrap in Rails
How to use Dozer.mapper
How to use Gradle
How to use org.immutables
How to use java.util.stream.Collector
How to use VisualVM
How to use Map
How to install ngrok
How to type backslash \
How to concatenate strings
How to delete BOM (UTF-8)
How to create an application
[Java] How to use Map
How to resolve Sprockets :: DoubleLinkError
[rails] How to post images
[AWS] How to check logs
How to resolve Git conflicts
How to lower java version
[Java] How to use Map
How to use Priority Queuing
How to uninstall Java 8 (Mac)
How to write good code
How to handle uploaded images
How to add ActionText function
[Rails] How to use enum