Search Results for "the-asset-pipeline"

Lessons





















Forum Threads

Running into render build error related to Tailwind

9
Rails
Following along with the Build a Blog lesson and currently trying to deploy on render. I can't seem to pass the below error during build - has anyone else seen this before? Locally tailwind is wo...
Chris Oliver replied

Struggle with Rails 7, esbuild, and Tailwind CSS Asset Loading

3
Rails
Recently, I ran into an issue while setting up **esbuild** and **Tailwind CSS** in my Rails 7 app. Despite following all the recommended steps, my **stylesheets** and **JavaScript files** simply wo...
Florian Osterhus replied

development env: is the asset pipeline expected to compile all assets or just those in demand?

2
Rails
I'm trying to understand if, in development, the asset pipeline is supposed to compile ALL assets found in manifest.js or just the ones that are requested. I've been doing some testing and have fo...

How To Use Importmaps With Rails Discussion

7
General
Are you using import maps yet?
Daniel Lee replied

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

Deploying our Rails Blog to Production Discussion

16
General
Hello Chris, thank you very much for you do to help us... I'm trying to deploy the blog but when building it on render I'm getting an error... Your RubyGems version (3.0.3.1) has a bug that preven...
banner520521 replied

How to use Bootstrap with CSS bundling in Rails Discussion

27
General
Thanks for another great video. It's no wonder why I sometimes feel lost in the Rails ecosystem. I learned Rails using the asset pipeline, then it switched to using Webpacker which I never fully un...
Mountaindog 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

How do I display my uploaded picture?

2
General
In my view, I have this to upload an avatar. When I want to edit, the picture is gone and how do I view my uploaded picture in my show view? I don't make use of any gems. <%= f.label :ava...
Samantha O replied

How to upgrade from Turbolinks to Hotwire & Turbo Discussion

12
General
Hey Chris, thanks for going over Turbo and StimulusJS 2.0 changes, I'm really excited about using them in my projects! One really big thing that would be great to cover is using dialogs/modals wit...
Thomas Connolly replied

How to use Hotwire in Rails Discussion

86
General
Can you please provide the repository for this also?
Ahmad khatab replied

CSS Beginner Need Help

2
CSS
Hi, i am new to CSS and HTML and i have been trying to make the background of my HTML site an image, but it doesnt seem to work and the image does not appear on my HTML after i have refreshed the p...
AfjalKhan replied

Error 500 on Heroku (app Ruby on Rails)

0
Rails
Hello , I created an app on Ruby on Rails, and everything is ok on my localhost. But on Heroku, it doesn't work : *We’re sorry, but something went wrong. If you are the application owner check ...

Setting background image from User uploaded asset

6
CSS
Hi, I am trying to set a user uploaded image as the background for their profile but cant seem to get it working. I'm stuck on what way to reference the image in the background css style. I'm usi...
Gerard Donnelly replied
Solved

Push changes to Node packages to Heroku

1
Rails
Okay, full disclosure, I upgraded to Rails 6 without fully understanding the consequences of using Actiontext and Webpacker. It's all new to me. So in my folly, I changed some of the Trix css direc...
Dan Donche 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 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

public/javascript/lib files not available in production

5
Rails
I have added some javascript files to pubic/javascripts/lib and I have referenced them thus ... type="text/javascript" src="/javascripts/lib/add_all_plots.js" ... They can be loaded in dev no p...
Chris Oliver replied

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