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
I used to think connecting a React frontend with a Rails API would be complex.
I used to think connecting a React frontend with a Rails API would be complex. Turns out, with the right setup (and a bit of Docker), it’s simpler than I imagined. [more inside]
Terminalwire is open source
Terminalwire is now available under then AGPL license! Details at https://terminalwire.com/articles/agpl-license including the “why”, “why now”, a high-level tour of the source code, and the commercial offerings.
Scaffold Templates
In this episode, we explore using the scaffold generator and modifying the templates to simplify the creation of consistent, Tailwind CSS-styled views and controllers in a Rails application, saving time when prototyping and building new features. https://www.driftingruby.com/episodes/scaffold-templates
Generate Beautiful PDFs with Rails 8 + Paged.js
Looking to create beautifully rendered PDFs in your Rails app? [more inside]
Active Storage & Form Errors: Preventing Lost File Uploads in Rails
Learn how to preserve active storage attachments when a form validation error occurs https://danielabaron.me/blog/active_storage_form_errors/
💡 Do you know why so many developers ship React with Ruby on Rails?
Because they just click — Rails offers a clean, efficient backend, and React brings the interactive, component-driven frontend that modern users expect. [more inside]
Rails, hacking, and Stripe as a scoreboard: Marc Köhlbrugge’s playbook
Martian CEO Irina Nazarova is talking to founders choosing Rails and Marc Köhlbrugge was an obvious success story. And his advice isn’t about “hustle” or “grit” …but curiosity, speed, and a willingness to be publicly wrong. [more inside]
⏰ Still struggling with Time Zone issues in your Rails app?
After hours of debugging strange timestamps and inconsistent created_at values, I finally decided to write the definitive guide to solving these problems — permanently. 🧠🔧 [more inside]
Rails Apps and Slowdowns: How Scout Shows what Databases Don't
Congratulations! Your Rails app is seeing consistent traffic and things are on the upswing. But with growth comes the potential for sluggish SQL queries that can slow things down. In this post, we cover what your database can tell you about the problem, and we’ll also talk about what it can’t tell you. [more inside]
Scaling Rails - part 2 Amdahl's law
Continuing our “Scaling Rails” series, our next article dives into Amdahl’s Law. How many threads should you use within a process? Well, it depends. Read on to learn about the relationship between threads and the amount of work that can be parallelized. [more inside]
🚀 Is Your Ruby Application Running as Fast as It Could?
If you’re noticing slow performance or inefficiencies in your Ruby applications, it might be time for an optimization overhaul. At Ruby Stack News, we specialize in fine-tuning code, boosting performance, and helping you make your applications run faster and more efficiently. [more inside]
Markdown image uploads with EasyMDE and Active Storage
Markdown is an excellent choice to write rich content because it’s portable, format-free and, generally, more efficient than the alternatives. [more inside]
🔍 Are you really using all the power Ruby gives you out of the box?
I just published a new article where I explore the hidden gems inside Ruby’s Standard Library — tools that can help you write cleaner, faster, and more secure applications without adding extra dependencies. [more inside]
llm.rb: a minimalist's library for interacting with LLMs
llm.rb provides a clean, dependency-free way to work with large language models from Ruby. It supports multiple providers (OpenAI, Gemini, Anthropic, Ollama) through a simple, consistent interface — without external dependencies or heavy abstractions. If you like plain Ruby objects, clear APIs, and composable tools, you might find it useful :)
🚀 Understanding HTTP Request Headers in Rails! 🛠️
Curious about what your browser sends to the server every time you load a page? I built a simple Ruby on Rails app that displays all the HTTP request headers sent by your browser, and I’m excited to share the results! [more inside]
🔍 Mastering the Art of Shrinking Data Without Losing a Byte
Just published a new article exploring lossless data compression in Ruby—a fun and practical dive into how algorithms like Run-Length Encoding (RLE) can help reduce file sizes without losing information. [more inside]
Sanitize your strings in JavaScript like a Rails developer
What if you could write JavaScript that gets _really_close to what you can do with Ruby/Rails? https://railsdesigner.com/sanitize-javascript-like-rails/ In this article I creating a sanitize
method to clean up content from trailing/leading white-spaces, multiple new lines and essentially whatever else you want (or not!) 🧹
Simple Pagination for Rails Controllers
If you need pagination but not the kitchen sink, keep it simple with NextPage.
🚀 Optimize Your Ruby App's Memory Usage with jemalloc-rb 💻
If you’re working on long-running Ruby applications or handling a lot of data, memory management becomes crucial! 🧠 In my latest article, I explore how you can boost your app’s performance and reduce memory fragmentation using the jemalloc-rb gem. [more inside]
Keep Active Record models clean with Decorators
One of two “patterns” I generally reach for. https://railsdesigner.com/saas/decorators/ Including some niceties, without any gems.
Montreal.rb April 2025 Domain Driven Design in Ruby on Rails
The video for the Montreal.rb April 2025 talk “Domain Driven Design in Ruby on Rails” has been published: https://www.youtube.com/watch?v=JlJLz2dJlhQ&list=PLRAf4zt5oEjc2mqmEN9m_O0JovQCXxvxt&index=17
📘 New Article: Building Flexible Data Models in Rails with the EAV Pattern
In many applications, products or entities require a flexible structure where fields vary depending on the type. Managing this kind of dynamic data model in a relational database can be challenging. [more inside]
Scaling Rails Applications
Today, we are kicking off a series of blogs on scaling Rails applications. [more inside]
Adding shortcodes to the Marksmith editor
Occasionally, when creating content using an editor, be it Markdown or WYSIWYG, we need specific parts that exceed standard formatting options. Whether it’s highlighting important information, adding visually enriched snippets or embedding third-party content, the basic editor features often fall short. This is where adding a short code or callout feature is useful. In this article, we will learn how to add shortcode support to the Marksmith editor by building a blog with enriched content abilities. https://avohq.io/blog/marksmith-shortcodes