Using Rails with SSL on Localhost
Although most simple apps will operate just fine running on http://localhost:3000 (the default for Rails), it is often advantageous to run your local development on https, or using SSL/TLS. You…
Why Don’t My Assets Reload Correctly in Rails 6 or 7 (Sprockets, Webpacker, JS Bundling, & Shakapacker)
Webpacker was historically the tool used to connect Rails 6 apps to Webpack, the build tool for managing Node dependencies. Webpack originated from the Node world and Webapcker was the…
Rails 7: ImportMap-Rails with Bootstrap, Stimulus, Turbo (Long Tutorial)
If you want Bootstrap with Sprockets and ImportMaps, you will pin your JS dependencies — in our case Bootstrap and Popper — in any one of these 3 ways: (1) Via a…
Rails 7: ImportMap-Rails with Bootstrap, Stimulus, Turbo (Quick Setup)
Here we will do a manual setup for ImportMap-Rails starting from rails new --skip-javascript. Please note that these are the step-by-step instructions for helping you start with a brand new…
Readline Shortcuts Cheatsheet
These shortcuts are used on your unix command line prompt. They are done using the CONTROL (or CTRL) key on your keyboard. This is known historically as the “GNU readline…
The Pyramid of Learning to Code
There are three levels of understanding coding we must achieve to become effective developers: Language, where we understand the fundamental parts of the language we are working with; theory, where…
Git Branching & Checking out
What is branching? Branching mean we create a new line of commit history in a temporary working space. We do this to implement a feature to fix a big, and…
Rebasing and Merging
Let’s begin with the most foundational part of learning Git, the open source tool universally used to write modern software: Merging vs. rebasing. When you are using git, the first…
Heroku Memory Bloat
Let’s consider a common problem: Your 12-factor Rails app has an operation, like uploading file to attach to an email, which causes your Heroku memory to jump past its allocation…