The Ruby and Rails community linklog
Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!
Submit a post
Post Preview
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
Old Ruby and Rails on new hardware with dev containers
New post! I need to revive an ancient Rails app (read: Ruby 2.1, Rails 4.0!) after nearly a decade of dust. This is a great fit for a dev container. Here’s what I put together, along with some commentary, May it suit your next legacy Rails revival! https://everydayrails.com/2025/04/15/old-ruby-rails-dev-container
🚀 Just dropped a new update to my gem TrixGenius — now with math expression evaluati
You can type something like (5 + 3 * 2) and hit the ✨ “Calculate” button — the result gets auto-inserted right in the content. Perfect for Rails apps that use ActionText and need some smart input magic. [more inside]
Understanding Closures in Ruby 🔒
Closures are one of Ruby’s most powerful yet often misunderstood features. They allow us to write cleaner, more flexible, and highly reusable code. If you’ve ever used blocks, procs, or lambdas in Ruby, you’ve already interacted with closures — but do you really understand how they work? [more inside]
Adding Structured Data to a Rails application
When it comes to SEO, content is king. However, content is not exclusively what can be seen or read, metadata is also part of the content, and it helps us better communicate what the content is about and what entities are part of it. Learn how to add structured data, a.k.a. schema markup, to a Rails application. [more inside]
How does Rack work?
Rack is a great gem that simplifies communication between rails and other ruby web frameworks with the app servers. This post explains the problem that the frameworks had before rack. https://adbatista.github.io/2025/04/12/rack.html
Print HTML to PDF with Real Headers & Footers
Struggling to get proper headers and footers when generating PDFs in Ruby or Rails? I wrote a quick guide on how to solve this using modern tools. [more inside]
⚙️ Use YML, Thor, and inject_into_file to make your life easier!
I’ve been working on simplifying the repetitive file edits we often make in Rails projects. [more inside]
Allow ActualDbSchema gem working on projects without git
actual_db_schema v0.8.5 is out with a fix allowing the gem to work without git. More details are in this Reddit post: https://bit.ly/43JUI3h
🚀 Finally here: the alpha release of TrixGenius!
Say hello to AI-powered rich-text editing for your Rails apps! ✨ With just a click, your users can now auto-correct spelling mistakes directly inside the Trix Editor — thanks to the magic of DeepSeek + Hotwire. [more inside]
Rails 8 Assets: Adding a bundled package alongside vanilla setup
If you want to use an npm package that you can’t just pin to the importmap but that needs bundling, do you need to abandon the default Rails asset pipeline? Absolutely not, here’s how you can bundle just one package and keep the rest on vanilla Rails asset pipeline: Rails 8 Assets: Adding a bundled package alongside vanilla setup
🚀 Just published a new update to my gem trix-genius
No more manual wiring or config headaches. With just one command: bash [more inside]
Component design systems for Rails
Have you wondered about component libraries for Rails? I tried to list some popular options and their relation to Rails.
Automatic API Documentation for Rails with OasRails and AI: Fast and Easy|
I just release a blog post showing an easy way to document Rails APIs. Read more here!
Let there be docs! Generating an OpenAPI schema across the Rails stack
In API development, documentation is often something tackled once the code’s written and tested. There’s a growing movement advocating for a doc-first approach, where specifications come before a single line of code. So, when might an implementation-first approach be preferred? [more inside]
Kreds v1 is out
It provides a safer, cleaner interface for accessing Rails credentials with strict error handling, optional fallback to environment variables, and support for environment-specific structures. [more inside]
Boolean vs Datetime
In this episode, we look at refactoring an existing application where it uses a boolean to determine if a post is published or unpublished. However, this feature has its limitations, so we change the functionality to work off of a datetime column instead. https://www.driftingruby.com/episodes/boolean-vs-datetime
Resize Observer API with Stimulus
Occasionally, parts of our application that depend on the size of the screen can break because of the user resizing the browser window. [more inside]
RSpec book update: Testing in isolation with mocks (and friends)
I just shipped a new chapter for the current edition of Everyday Rails Testing with RSpec. In this release, I’ve totally replaced my introduction to testing in isolation with mocks (and stubs, and fakes, and spies, and doubles, oh my). My beliefs on when and how to mock have changed a lot since the last major release of the book, and this updated chapter reflect my newer opinions. I hope you find it useful!
Reject Nested Attributes in Rails
A detailed write-up on using reject_if
with accepts_nested_attributes_for
to make nested associations optional in Rails forms https://danielabaron.me/blog/rails-reject-nested-attributes/
Running ruby on jupyter notebooks
You’ve maybe heard about Jupyter notebooks - an awesome web application which allows you to run python code in a browser. There are another similar project - Livebook which allow running Elixir code in browser. [more inside]