I'm using Rails 6.0.2.
yarn add [email protected]Add bootstrap with
I made the app/assets/stylesheets/application.scss file as follows.
//= require bootstrap $enable-shadows: true;// ← This is not working
bootstrap itself is working,
enable-shadowsIs not working.
(Maybe you can't do it with assets!? Use webpacker?)
Answer # 1
It was solved as follows.
//= require bootstrap ← Delete this line $body-bg: red; @import'bootstrap/scss/bootstrap';
I didn't understand that it was a shadow, so I changed the background color.
- ruby on rails - [rails 6] i'm using bootstrap 4, but the layout collapses only after logging out
- ruby on rails 6 - i want to change the display of the product detail page according to the user's conditions
- bootstrap display in ruby on rails is broken
- ruby on rails - you cannot change the keychain after downloading the pem file when creating an ec2 instance the matter that come
- ruby on rails - i want to change from the state where only one posted image is displayed to the state where two posted images ar
- ruby on rails - i want to change only a part of the partial template
- ruby - [rails] i want to change the argument of link_to using conditional branching
- ruby on rails 5 - i want to change the location of views in rails 5
- ruby - rails db: migrate is not possible
- ruby - [rails 5] i want to send an email to a specific user using action mailer
- ruby - data is not updated by update action rails
- ruby on rails - [rails] i want to solve "no route matches [post]"/messages/search "" of "routing error&
- ruby - allow rails chat app to save to only one room
- ruby - [rails] how to resolve activerecord errors
- ruby on rails - not created
- [sqlite, ruby, rails] i want to sort the hash value data obtained from the table as i expected
- ruby on rails - about the legitimacy of db design
- ruby on rails - i want to solve the problem that scss is not applied after modifying the scss file with rails
- ruby on rails - i want to sort the search results
- ruby on rails 6 - i want to save data from one form to multiple tables at the same time
- css - error when installing bootstrap or sass
- html : How and on what to write your grid?
- ruby - bootstrap image is not displayed
- ruby on rails - bootstap 4 does not work in rails6 production environment
- ruby - [rails] parameter transmission is not executed properly after installing bootstrap
- ruby - [rails] about errors when installing bootstrap
- css - i want to arrange card elements using bootstap side by side and evenly spaced
- html - bootstrap card does not adapt well