Well hello there
I’ll write something soon. I promise.
Rails 7: Fix yarn missing on Heroku
When deploying Rails 6 sites to Heroku, the Ruby buildpack would detect if the webpacker gem was installed and install yarn for you automatically. With Rails 7, webpacker is no longer installed by default, so using jsbundling-rails and extras that require yarn to be installed will cause deployment errors on Heroku. The fix is to instal...
Rails 'new' customizations for Rails 7
With Rails 7 and its plethora of new javascript and css configuration options and flags, it can be quite challenging to remember just what these options are when creating a new app. For quite some time Rails has had the ability to read in a config file you have in your home folder named .railsrc This file contains the various flags you...
See what javascript caused an attribute to change
I was working on some front-end code today - and when I clicked on a checkbox it mysteriously shrunk. I mean its height was set to 0px when I clicked on it. It was so strange. Some code somewhere was adding a style attribute with height: 0px. Searching my codebase I couldn’t find anywhere where this was happening. To solve these sorts ...
🔥 Installing Ruby 2.6.7 on MacOS with asdf
On MacOS Big Sur - installing Ruby 2.6.7 may fail during the compilation step. Here is the snippet I used to ensure it compiles and installs.
🔥 Using specific Node JS versions in Github Actions
Sometimes you may want to run your Github Actions using a specific version of NodeJS (eg version 8). This can come in handy if you are dealing with a legacy application and needing to compile a specific version of node-sass for example. The way to do it is to add the following lines into your workflow file. - uses: actions/setup-node@v...
Hi, I'm Rob
I'm a Ruby on Rails web developer. I'm originally from Australia but now live in the United States.
Subscribe and get the latest posts in your email
Daily digest, no spam, unsubscribe any time
Or simply get the latest posts RSS.
https://world.hey.com/robzolkos
Posts: 7
New post: Quarterly
Search using free-text and press