Submit a post
Post Preview
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
Yesterday
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/
Renaissance of Ruby on Rails - Steven Baker
2nd presentation from Ruby Warsaw Community Conference! [more inside]
Building translation management for a Rails app
Years ago, I encountered the challenge of allowing users to contribute to translations, especially for languages other than English. We relied on third-party SaaS solutions for an extended period. However, as time passed, we needed to explore a custom solution crafted to our evolving business model and software requirements. That’s how I started working on what we now know as LesliBabel – a simple yet useful engine for handling translations. No need to tinker with yml or json files. More importantly for my users, it comes with a friendly web interface and updates in real-time. Now, LesliBabel is fully open-source, integrated into the Lesli Framework ecosystem. You can explore a brief introduction (and check out the online demo) here: https://www.lesli.dev/engines/babel/ The first stable version of Lesli (following its open-source release) is coming!
I am putting everything I know into a first ever book on Kamal
I decided I put everything I know to a short, to-the-point Kamal book with nice graphics and syntax highlighting. And I am doing presell with an option for a patron copy with Early Access.
HexaPDF 0.38.0 - PDF/A-3b support
The newest release of HexaPDF now supports the creation of PDF/A-3b files (and also 2b, 2u and 3u conforming files). See https://hexapdf.gettalong.org/documentation/pdfa/index.html for information and https://hexapdf.gettalong.org/examples/pdfa.html for an example.
Efficient Database Queries in Rails: A Practical Approach
This post will walk through a step-by-step approach to PostgreSQL query enhancement in Rails applications. From indexing strategies to running migrations without downtime, to efficient column selection, you’ll learn some techniques to ensure optimal query performance. https://danielabaron.me/blog/rails-query-perf/
Extralite 2.8 released
I’m pleased to announce that Extralite version 2.8 has just been released. Extralite is a Ruby gem for working with SQLite databases. New in this release: better query mode names, simplified querying APIs, a new Database#wal_checkpoint
method for performing manual WAL checkpoints, and improved documentation. [more inside]
A somewhat-scientific poll for a future blog post that will debunk some of the myths
I’m doing a series of somewhat-scientific polls on how Rubyists search for things and how/where do they ask for help. This is for a future blog post that will try to debunk some of the common myths and FUD we constantly hear about Ruby. Please vote so I can get a decent sample size!