Тёмный

How to use Bootstrap with CSSBundling Rails 

GoRails
Подписаться 28 тыс.
Просмотров 10 тыс.
50% 1

► Check out gorails.com for Pro episodes and more!
► SaaS business template for Ruby on Rails with built-in features like Payments, Teams, and much more: jumpstartrails...
► Ruby on Rails hosting with Hatchbox.io: hatchbox.io
► Learn how to add Stripe Payments (with SCA support!) with Ruby on Rails: courses.gorail...

Опубликовано:

 

31 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 28   
@dheeraji1
@dheeraji1 Год назад
Great video! I learned so much in just 10 minutes. Thank you!
@oli2016
@oli2016 3 года назад
Great video. Slowly getting more comfortable with the new bundling methods. I really do hate having a million Node modules in my app which I know nothing about!
@GorailsTV
@GorailsTV 3 года назад
Me too! Removing Babel alone drops like 100 package dependencies. 😅
@tallerrails92
@tallerrails92 2 года назад
Great tuto but dropdown doesn't work. My versions: rails 7.0.1 - ruby 3.0.3 - bundler 2.2.33 - npm 8.3.1 - yarn 1.22.17 - ubuntu 20.04 . Bootstrap classes ok but popper. Any suggestions thx
@lucasnba2324
@lucasnba2324 Год назад
same problem
@mswards
@mswards Год назад
Confirm your versions are matched - the sample code for 4 may not work with version 5.
@JonathanValentimFerreira
@JonathanValentimFerreira 2 года назад
Great video!!!
@GorailsTV
@GorailsTV 2 года назад
Thanks Jonathan!
@ernatercero3974
@ernatercero3974 2 года назад
Thanks for the video, however I am getting this issue trying to click on the Dropdown menu: Uncaught SyntaxError: Cannot use import statement outside a module, hope you can help me with that.... :-)
@simple-coding-guy1229
@simple-coding-guy1229 2 года назад
Question for you(or anyone who can help). I have a Bootstrap template that I'm working off of that uses an Owl Carousel. I could use 'yarn add owl.carousel' and make it slightly work, but in order to make it look exactly like the static page, it requires a bootstrap.min.js/css and an owl.carousel.min.js file. These files don't get compiled like others do and if I try adding them to the application.js/css with the yarn build/yarn run build:css commands, it throws errors. Is there something special we can do with the minified files to make them work? I hope this makes sense.
@richardroman9983
@richardroman9983 3 года назад
Excellent video!⭐⭐⭐⭐⭐
@MEHDI.NIAZI66
@MEHDI.NIAZI66 3 года назад
hi thank you for this great tutorial , i want to use RTL version of bootstrap 5 how to do that?
@HAFIZZOHAIBdilawer
@HAFIZZOHAIBdilawer 2 года назад
How To Add Custom Js and Css Files via importmap
@sgodoyo_CL
@sgodoyo_CL 3 года назад
Thanks!
@GorailsTV
@GorailsTV 3 года назад
You're welcome!
@Edvard-Aliev
@Edvard-Aliev 3 года назад
Thx 🙏 bro!
@rayapputih
@rayapputih 2 года назад
hi bro, i was following this tutorial but actually i have an issue like this ~The asset "application.js" is not present in the asset pipeline.~
@GorailsTV
@GorailsTV 2 года назад
That means you haven't run the yarn command to build the css
@rayapputih
@rayapputih 2 года назад
@@GorailsTV oke, done thanks for information
@reiniergarcia
@reiniergarcia 3 года назад
How to properly run this in rails 6? I tried it and is not working properly the navbar using bootstrap. Is styled but seems like is not working the javascript code, because is not showing the nested menu options (the dropdown). I added jsbundling and cssbundling.
@stpaulsnaples6762
@stpaulsnaples6762 2 года назад
I'd like to see a tutorial on this using Rails 6, too. I'm having a tough time with it. If I run rails new with the cssbundling, etc. switches, it launches Rails 7 alpha2. I'm afraid to bump my production app to 7 until it's released (or at least beta).
@daily-coffee-pour-over
@daily-coffee-pour-over 2 года назад
I am using Rails 6 with jsbundling & cssbundling. Did you add `import * as bootstrap from "bootstrap"` in application.js?
@kevink.2473
@kevink.2473 2 года назад
Hello, great video thanks for sharing! Everything works fine with bootstrap, I then tried to make sass work but impossible it does not want to work. I used the command "rails new project_name -d postgresql -j esbuild --css bootstrap sass" and activate gem sass. Do you have an idea to make this work ?
@GorailsTV
@GorailsTV 2 года назад
You're trying to pass two options for the CSS flag. You can only pass one and bootstrap will automatically configure sass for you.
@kevink.2473
@kevink.2473 2 года назад
@@GorailsTV Thank you it works well like that !
@jfbcodes
@jfbcodes Год назад
sadly this no longer works; using the shortcuts -j and -c like rails new BootstrapTest6 -j esbuild -css bootstrap leads to Don't know how to build task 'css:install:css' (See the list of available tasks with `rails --tasks`); As well, doing it the normal way now leads to a Bootstrap that doesn't have JS working.
@thememo14
@thememo14 2 года назад
Hello People, I have this issue, Could you help me, please? I followed the video and it gave me this result. What steps do I need to take? > run npm set-script build:css "sass ./app/assets/stylesheets/application.bootstrap.scss ./app/assets/builds/application.css --no-source-map --load-path=node_modules" from "." run yarn build:css from "." Error: Can't find stylesheet to import. │ @import 'bootstrap/scss/bootstrap'; app/assets/stylesheets/application.bootstrap.scss 1:9 root stylesheet
Далее
How to use jQuery & jQueryUI with Esbuild
12:47
Просмотров 9 тыс.
How to use ESBuild with JS Bundling in Rails
15:07
Просмотров 15 тыс.
Talking About Sass And ESBuild In Ruby On Rails 7
10:34
5 JavaScript Concepts You HAVE TO KNOW
9:38
Просмотров 1,4 млн
Episode #387 - Demystifying the Asset Pipeline
20:19
Stripe Checkout in Rails with the Pay gem
17:49
Просмотров 13 тыс.
Ruby on Rails - How to Use Import Maps
5:17
Просмотров 11 тыс.
Understanding Rails Params & How to Use Them
9:40
Просмотров 9 тыс.