Submit a post
Post Preview
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
Forcing a Rails database column to be not null
Here is a guide to forcing null constraints in Rails. It explains why, how to do it in different circumstances, and an introduction to change_column_null
.
New release of OnStrum, configurable application healthcheck rack middleware 🚀
This gem allows you to embed healthcheck endpoints into your rack based application to perform healthcheck probes. Make your application compatible with Docker/Kubernetes healthchecks in a seconds: https://github.com/on-strum/ruby-on-strum-healthcheck
Making a (Sidekiq) Batch Recipe
This post introduces Sidekiq Pro’s batches feature. It builds some tests that exercise batches to explain how they work. [more inside]
Hands-off eclipse photography with ruby and gphoto
How I automated exposure bracketing to take pictures of the eclipse totality using ruby and gphoto: https://yboulkaid.com/2024/04/10/eclipse.html
How to Build a Discord Bot in Ruby on Rails
In this guide, Fiona walks you through the process of creating a Discord bot using Ruby on Rails. [more inside]
Super Fast Rails – A promise given is a debt
Last week’s article, Super Fast Rails, received many funny reactions. But for some people, that was too much: https://www.rorvswild.com/blog/2024/super-fast-rails-a-promise-given-is-a-debt
Account-based subdomains in Rails
Learn how to isolate data in Rails with multitenancy and customize your user experience with account-based subdomains. It’s all in our latest article on the Honeybadger Developer Blog.
Process management in Ruby 💎
Application, process, heap, stack, wow that’s a lot of triggering words. Ever wondered what they are and how they are translated in the Ruby world? 💎 [more inside]
An interactive intro to ruby debugger, part 2
I’ve expanded my interactive intro to ruby debugger, inside the debugger itself, with an introduction to using breakpoints: An interactive intro to ruby debugger, in the debugger
Do you still `pbcopy` and `pbpaste`?
Nothing’s wrong with that, but the advantage you get with the clipboard gem is that it works on many more platforms than just macOS (including Windows). [more inside]
Abstract methods and NotImplementedError in Ruby
Ruby’s NotImplementedError exception is often used as a placeholder in abstract classes for methods that should be implemented by subclasses. But did you know that this is not how this exception class was intended to be used? [more inside]
Windows and WSL
In this episode, we’ll look at setting up a fresh Windows 11 environment for Ruby on Rails development. We’ll be looking at a few different tricks that makes managing a Windows environment much easier. https://www.driftingruby.com/episodes/windows-and-wsl
How to add or remove a Stimulus controller
A quick memo about how to add or remove a Stimulus controller - I recommend to rely on generator this time. [more inside]
Introducing ActiveRecordAnonymizer
Excited to share a new Ruby gem I’ve been working on: ActiveRecordAnonymizer! 🚀 [more inside]
Optimized Model Auditing with PaperTrail
Learn how to optimize model auditing in your Rails application using the PaperTrail gem by setting up separate audit tables for each model, enhancing performance and organization in the auditing process: https://danielabaron.me/blog/model-audit-paper-trail/
AnyCable v1.5: simplified pub/sub, whispering and more
This release’s major highlight is singed (and public) streams: skip channel classes and connect to your data streams directly (and securely), progressively enhance your application with bi-directional realtime features only when necessary (not so often). [more inside]
Live reload a Rails 7 application, an unsatisfaying attempt
Livereload a Rails app on your local machine is still not available natively. Maybe in next version of Rails, but not yet. [more inside]
Outgrowing Heroku: An AWS Migration Story
Facing Heroku’s limitations during their Black Friday frenzy, TeePublic moved their Rails monolith to Amazon ECS. This story details their journey, including the why, how, and impressive results of the migration. (Spoiler: it was a game-changer)
Happy 4th Birthday, Bridgetown!
Four years ago today, the Bridgetown publishing framework was born, the first public website launch and release of Bridgetown 0.10 happened a few weeks later, and the rest as they say is history. As always, a hearty thank you to all our sponsors and 70+ contributors who have helped this open source project flourish in ways I never could have imagined.
Series of Interviewing blog posts
My fellow Rubyists, I know this isn’t the most Ruby of all posts (except for the FizzBuzz example) but I’ve seen many people make simple mistakes during hiring processes. And I want to help fix that, so I’ve written a series of posts geared towards programmers about interviewing that I hope y’all will find helpful!
Rails on AWS book
Do you feel discomfort when connecting an AWS service with a Rails application because of unclear pricing rules, complex permissions, or advanced networking configuration? I felt this way for a long time until I dedicated myself entirely to learning AWS. With this book, you can master AWS in a short amount of time without spending months getting certified - Get the book now