How the Rails Procfile Works, Foreman, Overmind, Hivemind
The Basic Rails Server New Rails 7 apps come into two basic flavors: (1) By default, using Importmaps, and (2) with a Node-friendly setup like JSBundling or Shakapacker. This has…
Succeed with Automated Testing and TDD
Stuff relevant to Ruby on Rails.
The Basic Rails Server New Rails 7 apps come into two basic flavors: (1) By default, using Importmaps, and (2) with a Node-friendly setup like JSBundling or Shakapacker. This has…
In your rails_helper.rb file, in the Rspec.configure block (of course), add this little magic: Now anything you print out to the frontend with ‘console.log’ will automatically get piped right to…
Here’s a solution that gives you error messages if ANY of your Foreman services crash on launch (in my case, web, js, css, and redis— but your Procfile.dev will have services based…
These quick recipes assume you are starting with a new Rails 7 project from scratch. Because they do quick find & replace to add content to existing files, they are…
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…
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…
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…
Ruby on Rails has special under-the-hood magic that will patch four methods onto your models for each enum value you specify. That means if you specify an enum with 3…