Submit a post
Post Preview
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
Ruby regex guide
A beginner friendly guide about Ruby regexes. Even if nowadays, ChatGPT tend to be not-too-bad in this field :) [more inside]
Good Database Migration Practices for Your Ruby on Rails App using Strong Migrations
Let’s explore Strong Migrations, a gem that can help you maintain good practices with your database migrations in Ruby on Rails: https://blog.appsignal.com/2024/03/20/good-database-migration-practices-for-your-ruby-on-rails-app-using-strong-migrations.html
New version of actual_db_schema
A new version of actual_db_schema is released. It adds Ruby 3.3 compatibility. Enjoy the gem and improve your productivity!
History of the endless method syntax
I explored in my article the history of how we got the endless method syntax. There were multiple proposals and a lot of different syntaxes proposed.
Stimulus Tutorial: Moving & Animating Todos
Drag and drop functions are a fun interaction, but they may not be the best interface in every situation. Buttons are a great affordance, and we can hook them up into our existing drag and drop code without any issue. Then we’ll look into animating the movement on the page so that it still feels interactive. https://onrails.blog/2024/03/18/stimulus-moving-and-animating-todos/
Generate and share rails commands – new app, scaffold, model
“Rails Command Generator” let’s you interactively build the rails commands for the follwoing [more inside]
Rails 8 adds allow_browser to set minimum browser version
Rails 8.0 adds allow_browser to set minimum versions for your application. #rubyonrails #ruby [more inside]
Rails 8 adds allow_browser to set minimum browser version
Rails 8 allows us to set minimum browser version for compatibility. [more inside]
Practical Railway-Oriented Pipelines in Ruby
A simplified approach to building composable data pipelines in Ruby, with examples and use cases. [more inside]
Tracks Not At RailsConf 2024
When we were putting the RailsConf program together, I brainstormed track options. We didn’t end up using them, so here are eight tracks you won’t see at RailsConf 2024. [more inside]
Numeric data types in Ruby and when to use them
Ruby supports multiple numeric data types in its core and standard libraries. What are they made for and how to use them properly? [more inside]
Frictionless Generators
Learn to save time with Rails custom generators. A book about learning the nuances of creating custom generators. Including some free quick reference sheets with one for an overview and one for values/inflections
Execute Third Party Code in a Rails App
I just published https://fly.io/ruby-dispatch/execute-third-party-code-in-a-rails-app/ that shows how a code quality scanner SaaS app built on Rails safely safely analyzes customer source code with virtual machines. This technique can be applied to all sorts of applications like taking screenshots with headless chrome instances.
ActiveHashcash 0.4.0
ActiveHashcash protects Rails applications against bots and brute force attacks without annoying humans. This new version brings two important features: [more inside]
Notes from migrating from Minitest to RSpec, with help from GitHub Copilot
Artificial intelligence hasn’t replaced us yet, but how does it handle the boring parts of our jobs? I just ported a Rails app’s test suite from Minitest to RSpec with assistance from the robots, with pretty good results.
Turbo Streaming Modals in Ruby on Rails
In the second and final part of our series, let’s turn to another method used to make modals accessible in Rails: Turbo Streams: https://blog.appsignal.com/2024/03/13/turbo-streaming-modals-in-ruby-on-rails.html
Generate Free (Node) Punks for Presidents! (in 24px) With Ruby
Hello, a little update to the We Love Punks starter repo that let’s you generate 5000 (node) punks in 24px. I added more archetypes and accessories. Now you can generate (node) punks for presidents! (in ruby). Use the joe (biden) and/or donald (trump) readymades. Let’s make punks great again! Let’s finish the job! Are you with us? Happy pixel pushing with ruby.
How to customize Rails console setup without modifying the project
A short and sweet tip on modifying your Rails console setup without changing the project code: How to customize Rails console setup without modifying the project
HotWired Tutorial: Update Model with Checkbox using Turbo Morphing
Use Turbo 8 to improve the perception of speed and interactivity on our web apps. This tutorial shows how you can use Turbo, Stimulus, and the new morphing feature to remotely update a form from a checkbox. https://onrails.blog/2024/03/06/stimulusjs-tutorial-update-model-with-checkbox-using-turbo-morphing/