Search Results for "0-javascript-and-css-asset-pipeline-migrating-from-jquery-to-vanilla-javascript"

Lessons





















Forum Threads

Using the Trix Editor plus File Upload Attachments Discussion

52
General
Great vid, can this be done with the carrierwave gem?
Gabriel Ursache replied

How to use Bootstrap with Webpack & Rails Discussion

50
General
Thanks for posting this and the previous video on using tailwindcss. It's helpful to see the main themes reinforced in each of the videos. One thing that I'm struggling with is what seems like a vi...
bradley replied

How to use ESBuild in Rails with JSBundling Discussion

30
General
This is awesome, I have been using it for a couple of weeks now. I didn’t necessarily think webpacker was slow, except maybe on Heroku builds. But when you use this, you wonder why you put up with ...
Aaron replied

Using Webpacker and Rails on AWS Elastic Beanstalk

10
General
Can anyone point me in the direction of documentation/tutorial for using Webpacker with Rails on Elastic Beanstalk? I have been playing with Tailwind CSS (which is great btw), and I'm getting a ver...
Simon Cooper replied
Solved

Integrating your own css doesn't work with Rails 7.1.2

1
CSS
Hello, I use Rails 7.1.2 and Ruby 3.0.2. I wanted to include my own css. It doesn't work. The following errors occur: Sprockets::Rails::Helper::AssetNotFound in Pages#index The asset "custom.css" ...
Enow B. Mbi replied

Rich Text Blog Posts with ActionText Discussion

19
General
Hi Chris, thanks for the video. I was wondering how do I truncate the text on the index.html page? I only want to show 130 characters of the content (previously body). <%= truncate(blog_post.c...
Pat Fitzner replied

How do I find out why Stimulus controllers aren't getting compiled? Asset Pipeline problem

1
Javascript
I updated a Rails 6 app to Rails 7 and changed from Webpacker to esbuild/webpack. Added Stimulus, and after not getting controllers to work tried a basic hello_controller and then searched the appl...
Greg S replied

Heroku deployment failing

0
Rails
I am trying to deploy this app to heroku. i get this error with the precompiling asset pipeline. I tried removing jquery from my Gem file but the error persists. log: ... remote: Installing...
Hassanelashram posted

How to use Javascript via Webpacker in Rails 6 Discussion

17
General
Alternatively to the webpacker way of require the flatpicker css in the `packs/application.js` you can do someting like: ``` /* *= require flatpicker/dist/flatpicker */ ``` In your rails `app/a...
Tony Dehnke replied

Iam desperately trying to deploy my App with Capistrano but it isnt working

2
Rails
Hey Folks, I have always received great help here, so I hope that it will work out this time so shortly before the end. I would like to deploy my app on my server and use capistrano. However, I c...
Sebastian replied
Solved

File to import not found or unreadable: bootstrap-sprockets on rails 5.2.0

4
Gems / Libraries
I have following problem. "File to import not found or unreadable: bootstrap-sprockets." Following gems I have installed gem 'bootstrap' gem 'bootstrap-sass', '~> 3.3.7' gem 'sass-rails', '&g...

How to install Tailwind CSS using Webpacker with Rails Discussion

28
General
Nice addition to GoRails episode list. Would love to see more TailwindCSS with Rails videos. Also thanks for plugging your laptop power in...I was starting to panic :D
Mostafa Ahangarha replied

Using Webpack in Rails with the Webpacker Gem Discussion

17
General
I wish our front end guys took 20 minutes to set up webpack on a project!

How do I install bootstrap-v4 via yarn?

4
CSS
Hey Guys, I tried to install bootstrap4 via yarn. And I tried it like this: 1. yarn add bootstrap@4.0.0-alpha.6 2. rails webpacker:compile 3. add the line: import 'bootstrap/dist/css/bootstrap' ...
Kjell Morgenstern replied
Solved

ViewComponents and Tailwind CSS JIT

1
CSS
I created a flash view component to display flash messages. It does work, but the javascript trigger its display does not work as expected. Instead of displaying on the spot, it waits for like 5 s...
Stéphane Paquet replied
Solved

rails 4.2.8 - stylesheet_link_tag throws ActionView::Template::Error: no implicit conversion of nil into String

0
Rails
I'm trying to update a rails app which runs totally fine if I use rails 4.2.4 (the version it's been developed on) upto rails 4.2.7 As soon as I switch to rails 4.2.8 or later (tested all versio...
Widu Wittekindt posted

SEEKING FREELANCER - Javascript configuration

17
Javascript
I have been trying for 4 years and 3 months to try to setup a basic rails app. I have bought 10+ books, subscribed to this and several ohter subscription services to try to learn the basics of rai...
Melanie replied
Solved

How do I include FontAwesome Pro in a Rails 7 project?

2
Rails
I own a license to FA Pro, and I want to use it in a new Rails 7 project. It doesn't look like I can do an importmap include of the pro font awesome, or if so, I'm doing it wrong. So I downloaded ...
ramzieus replied

Deploy Ubuntu 14.04 Trusty Tahr Discussion

371
General
The following commands should be slightly modified:cap install STAGES=productioncap production deployI believe it should be the following:bundle exec cap install STAGES=productionbundle exec cap pr...
paul lahana replied

Rails 6 - What Javascript/CSS Framework is good for me?

0
General
Dear community, since I'm not a good javascript programmer and new to Rails 6 (especially webpacker), I'm looking for a good framework for the whole fancy shit (Slider/Datepicker/Autocomplete/..)....
Chris-P-Chicken posted