Rails 8 assets: Break down of how Propshaft and importmap-rails work together | Radan Skorić's website

07-Mar-2025 136
I almost gave up and it was actually so simple. I wanted to change default asset organisation on a fresh Rails 8 application with the default set up: Propshaft + importmap-rails gems. And I just couldn’t get it to work. Frustrating. I looked at the official docs of both gems. They don’t talk about how the two gems work together so that didn’t help. I searched for articles explaining it but what I found was confusing. Some of them even talked about which one of them you should choose as if they’re alternatives. As you’re about to learn very soon, that makes no sense since they have exactly zero overlap in functionality. They’re perfectly complementary. With growing frustration, I realized one final approach remained. It can be hard and time consuming but it absolutely always works.
Use coupon code:

RUBYONRAILS

to get 30% discount on our bundle!
Prepare for your next tech interview with our comprehensive collection of programming interview guides. Covering JavaScript, Ruby on Rails, React, and Python, these highly-rated books offer thousands of essential questions and answers to boost your interview success. Buy our 'Ultimate Job Interview Preparation eBook Bundle' featuring 2200+ questions across multiple languages. Ultimate Job Interview Preparation eBook Bundle