python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
How to customize the Trix toolbar in Rails 7 when using importmaps?
I've recently upgraded an app to Rails 7 and I'm using importmap-rails for all of my javascript. Previously the app used Webpacker and I have all of the javascript working via importmaps except custom...

Lee McAlilly
Votes: 0
Answers: 1
How do I pass the environment info to javascript code with importmaps
I’m using Rails 7 with importmaps and I’m trying to make JavaScript code conditionally depend on the environment specific config. At the very least, I’d need to pass what environment is it in the firs...
Goran Jovic
Votes: 0
Answers: 1
JQuery $ not global throughout application importmaps Rails 7
I'm receiving odd behavior while using importmaps. I can access jquery within the scope of the application.js file and through js files that I import. But I cannot access jquery in normal rails views ...
valcod3r
Votes: 0
Answers: 0
Rails 7 importmap leaflet-css images path fix?
What I'd like to do:
I would like to have a leaflet layers control in my Rails 7 app.
What I get:
Leaflet works fine, but the control appears without the icon, like this:
and in the browser console I...
Morten Grum
Votes: 0
Answers: 3