Achieving Multitenancy in a Rails App Using CurrentAttributes

While working with a legacy BBj PRO/5 database for a client, we needed to set up a new CMS with multitenancy requirements. We were dealing with a slew of foreign tables representing the PRO/5 data, and each of the tables had a column for designating which tenant they belonged to. Let's talk about how we leveraged ActiveSupport::CurrentAttributes to solve this problem!

#Ruby on Rails
Added: 7 Aug 2025
Create a Rails Staging Environment and Deploy with Kamal

A staging environment is a safe replica of production where you can test features before going live. In this post, we'll create a staging environment for the blog and deploy to it with Kamal. It also covers the basics of Rails environments and shows how to configure Kamal for staging deployments.

#DevOps#Ruby on Rails
Added: 7 Aug 2025
Get the number of auto-fit/auto-fill columns in CSS – Frontend Masters Blog

The whole point of auto-fit and auto-fill is that you aren't saying how many columns to use. But if you knew how many the browser chose, you can make nice design decisions.

#CSS
Added: 7 Aug 2025
Should we NEVER use non-logical properties? – Frontend Masters Blog

Best bet: just always use them. More nuanced take: there is a few situations where using the physical property is still releavant.

#CSS
Added: 7 Aug 2025
Migration and upgrades: achieving near zero-downtime in PostgreSQL

This article explores techniques for achieving near zero-downtime during PostgreSQL migrations and upgrades

#database
Added: 31 Jul 2025
Making Postgres 42,000x slower because I am unemployed

As an respectable unemployed person must do, I tried to make Postgres as slow as possible

#database
Added: 31 Jul 2025
A handy use of subgrid to enhance a simple layout

subgrid in CSS is really handy for getting a nice level of design detail in place, especially in terms of maintaining a nice reading line, as Andy shows in this article.

#CSS
Added: 18 Jul 2025
How To Reduce The PWA Boilerplate Of You Rails App - The Miners

In this continuation of our PWA series, explore how to reduce the service worker boilerplate in your Rails app.

#Frontend#Ruby on Rails
Added: 18 Jul 2025
Async Ruby is the Future of AI Apps (And It’s Already Here)

How Ruby's async ecosystem transforms resource-intensive LLM applications into efficient, scalable systems - without rewriting your codebase.

#Ruby
Added: 15 Jul 2025
Hotwire components that refresh themselves

Using ViewComponents that know how to refresh themselves via turbo_streams is a powerful pattern to build complex flows with Hotwire

#Frontend#HOTWire#Ruby on Rails
Added: 7 Jul 2025
5 gems you no longer need with Rails

… and check why 5600+ Rails engineers read also this

#Ruby on Rails
Added: 2 Jul 2025
Making Rails delegated_type’s clearer - Kasper Timm Hansen

This past week, I was having a conversation with a reader and he brought up the example of Rails’ delegated_type. While I’ve never been a fan of the name, because...

#Ruby on Rails
Added: 1 Jul 2025
Prevent logging sensitive information in Rails, and beyond

The Rails defaults are a good foundation, but it’s still your responsibility to filter sensitive information from logs when using external APIs, services, and tools.

#Ruby on Rails
Added: 29 Jun 2025
Everyone Is Wrong About SQLite

Here's a spicy take: SQLite might be the best database choice for your next SaaS project. Yes,...

#database#Ruby on Rails
Added: 29 Jun 2025
Scaling Rails with PostgreSQL Read Replicas: Part 1 - Understanding the Basics

Learn when and why to use read replicas in Rails applications, understand the architecture, and implement basic read/write splitting with real-world exa...

#database#Ruby on Rails
Added: 26 Jun 2025
Versioning API requests

Learn how to handle API request versioning in Rails without duplicating controllers, using a schema-based approach that supports OpenAPI documentation and seamlessly maps external API structures to internal models.

#Ruby on Rails
Added: 26 Jun 2025
Making Tables Work with Turbo

Fixing the problems Turbo has when being used to add dynamism to tables in Rails.

#HOTWire#Ruby on Rails
Added: 26 Jun 2025
Exploiting LLM chatbots

It is becoming more and more common to use LLM chatbots for customer support and it is pretty easy to introduce security issues while implementing them. Here is a little story about such thing.

#AI
Added: 24 Jun 2025
Checklist: Is Your PostgreSQL Deployment Production-Grade? | Stormatics

This checklist can help you assess your current Postgres setup and identify steps that can enhance the robustness, security, and scalability of your PostgreSQL deployment.

#database
Added: 19 Jun 2025
Exploring Common AI Patterns with Ruby

Three examples of integrating LLMs in Ruby using OmniAI.

#AI#Ruby
Added: 11 Jun 2025
Table partitioning in Rails, part 2 - Postgres Stories - Blog - Visuality

How to handle table partitionaing for an already existing table which holds some (probably much) data. How to do table partitioning in Ruby on Rails.

#Backend#database
Added: 11 Jun 2025
Running multiple apps on a single server with Kamal 2

Kamal 2 finally brings the most requested feature to reality and allows people to run multiple applications simultaneously on a single server. Here’s how.

#DevOps#Ruby on Rails
Added: 6 Jun 2025
Generative-Ai at Custom AI Solutions

Articles about Generative-Ai in the Custom AI Solutions blog.

#AI#Ruby on Rails
Added: 4 Jun 2025
Building Offline-First React Native Apps with React Query and TypeScript | Whitespectre

Learn how to build offline-first React Native apps with React Query and TypeScript for a responsive and seamless user experience even without internet connectivity.

#Frontend#Typescript
Added: 4 Jun 2025
10 Modern CSS Features You Want to Use

CSS is evolving quickly and there many really cool new features that can help you craft beautiful web pages.

#CSS#Frontend
Added: 2 Jun 2025
First Previous Next Last