Rails 6 Bootstrap Install

preview_player
Показать описание
Do you want to install bootstrap in a rails 6 app? Originally we installed bootstrap via CDN links, but that’s the really the best approach. We will rip those CDN links out and install Bootstrap again via Yarn and Webpack. I’ll walk you through all the steps to complete this process. As usual, we will be working in our AWS Rails app where I walk through various tutorials around AWS and Ruby on Rails by example. If you have not seen this series check out hte link playlist below.

⏰ Timestamps
0:00 Introduction
1:10 Getting started
1:35 Remove CDN links
1:56 Yarn bootstrap install
2:15 Update Webpacker config
2:25 Import Bootstrap
3:27 Interrupted from my coworker
4:02 Push to GitHub
4:30 Deploy
5:26 Closing notes

AWS + Rails Series Playlist

My Gear List

My YouTube SEO Software

My Accounting Software

Make sure you subscribe to my channel to keep up to date with new content!

DISCLAIMER: Links in this description include affiliate links. If you purchase a product or service with the links that I provide I may receive a small commission. There is no additional charge to you! Thank you for supporting BrainTrust Digital so I can continue to provide you with free content each week!
Рекомендации по теме
Комментарии
Автор

⏰ Timestamps
0:00 Introduction
1:10 Getting started
1:35 Remove CDN links
1:56 Yarn bootstrap install
2:15 Update Webpacker config
2:25 Import Bootstrap
3:27 Interrupted from my coworker
4:02 Push to GitHub
4:30 Deploy
5:26 Closing notes

BrainTrustDigital
Автор

Works perfect! You could also add that jquery and popper.js are required for bootstrap to work. Thank you. Keep up the good work!

stefan
Автор

thank you so much!, it's been a long time i didn't use rails and this is first time i using webpacker. I've tried many times but get error jQuery is not defined even after i do yarn add jquery. But after watch this tutorial it works perfectly. Thank you 🥳 !!

adenaziz