How to install Bootstrap in Ruby

How to install Bootstrap in Ruby

I tried to code the EC site I made in the past and tried to install bootstrap, so I posted it as a memo.


gem 'bootstrap-sass', '~> 3.3.6' gem 'jquery-rails'

And run bundle install Please check the version of bootstrap-sass on the following page to suit your environment.

application.css Change application.css to application.scss and make it application.scss

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


//= require jquery //= require bootstrap-sprockets

Fill in additionally

Now you can use Bootstrap as you like. It's easy to get satisfied with writing the bootstrap description in the Gemfile and forget to write it in the scss file or js file.

Recommended Posts

How to install Bootstrap in Ruby
[Ruby on Rails] How to install Bootstrap in Rails
How to iterate infinitely in Ruby
How to install ruby through rbenv
How to install Swiper in Rails
How to get date data in Ruby
How to install Docker
How to install docker-machine
How to install MySQL
How to install ngrok
[Webpacker] Summary of how to install Bootstrap and jQuery in Rails 6.0
How to install Titan2D (v4.2.0) in virtual environment
How to Install Oracle JDK 1.8 in Ubuntu 18.04 LTS?
How to build the simplest blockchain in Ruby
How to implement Pagination in GraphQL (for ruby)
How to use Ruby return
[Rails] How to install devise
[Ruby] How to comment out
How to install Boots Faces
Ruby: How to use cookies
[Ruby] How to write blocks
[Rails] How to install simple_calendar
[Rails] How to install reCAPTCHA
How to install JDK8-10 (Mac)
How to install Ruby on an EC2 instance on AWS
[Ruby] How to use standard output in conditional branching
[Ruby on Rails] How to write enum in Japanese
How to launch another command in a Ruby program
How to handle TSV files and CSV files in Ruby
How to resolve SSL_connect error in PayPal Ruby SDK
How to use Lombok in Spring
How to find May'n in XPath
[Rails] How to install Font Awesome
How to hide scrollbars in WebView
How to run JUnit in Eclipse
How to install JMeter for Mac
[Rails] How to write in Japanese
How to master programming in 3 months
How to install ImageMagick on Windows 10
How to use Ruby on Rails
How to change a string in an array to a number in Ruby
How to deploy Bootstrap on Rails
How to get parameters in Spark
Super rough! How to install Dagger2
How to retrieve the hash value in an array in Ruby
[Ruby] How to use any? Method
How to run npm install on all projects in Lerna
How to install MariaDB 10.4 on CentOS 8
How to use InjectorHolder in OpenAM
[Rails] How to install ImageMagick (RMajick)
How to display a graph in Ruby on Rails (LazyHighChart)
[Rails] How to install Font Awesome
How to install WildFly on Ubuntu 18.04
How to introduce jQuery in Rails 6
How to use classes in Java?
How to name variables in Java
Super easy in 2 steps! How to install devise! !! (rails 5 version)
How to set Lombok in Eclipse
How to install Web application for each language in Nginx
How to install PHP 7.4 and SQL Server drivers in CentOS 7.7
How to use Ruby inject method