Category guides
The main gem choices for each job in a Rails application, compared on maintenance, design and fit.
- Audit trails and record versioning in Rails: PaperTrail, Audited and Logidze
Which gem should record who changed what in a Rails app? PaperTrail, Audited and Logidze compared on storage, callbacks versus database triggers, Rails support, reverting records and the history they miss.
- Authentication in Rails: the generator, Devise, Rodauth and the rest
Comparing Rails authentication options in 2026: the Rails 8 authentication generator, Devise, Rodauth, Authlogic, Clearance and Sorcery, plus OmniAuth for social login.
- Authorization gems for Rails: Pundit, CanCanCan and Action Policy
How Pundit, CanCanCan and Action Policy model permissions in a Rails application, how each handles scopes and testing, and when a hand-written approach is enough.
- Background jobs in Rails: Solid Queue, Sidekiq, GoodJob and older options
How to choose a background job backend for Rails: Active Job, Solid Queue (the Rails 8 default), Sidekiq, GoodJob, delayed_job and Resque, and what replaced Workling and Spawn.
- Building a property search in Rails: geocoding gems compared
Geocoder, geokit-rails and PostGIS with activerecord-postgis-adapter and RGeo compared for location search in Rails: maintenance status in 2026, licences, geocoding provider limits and a working radius-search example.
- Feature flags in Rails: Flipper, Rollout and Unleash compared
How to ship code that is switched off, then turn it on for one user, a group or a percentage: Flipper, Rollout 3 and the Unleash Ruby SDK compared on storage, rollout rules, performance and clean-up, with their status in November 2026.
- File uploads in Rails: Active Storage, Shrine and CarrierWave
Choosing a file attachment solution for Rails: Active Storage, Shrine and CarrierWave compared, image variants with image_processing, validation, and migrating away from Paperclip.
- JSON serializers for Rails APIs: Jbuilder, Alba, Blueprinter and ActiveModelSerializers
Which gem should render JSON in a Rails API? as_json, Jbuilder, Alba, Blueprinter, ActiveModelSerializers and jsonapi-serializer compared on design, maintenance and fit.
- Multi-tenancy in Rails: acts_as_tenant, Apartment and database-per-tenant compared
How to keep each customer's data apart in a Rails SaaS: a tenant column with acts_as_tenant 2.2, PostgreSQL schemas with ros-apartment, one database per tenant with Rails sharding or activerecord-tenanted, and what each choice means for queries, migrations, jobs and tests in November 2026.
- Pagination in Rails: Pagy, Kaminari and will_paginate
Comparing Rails pagination gems — Pagy, Kaminari and will_paginate — and when to use offset or keyset pagination for large tables and infinite scrolling.
- Rails admin panels: ActiveAdmin, Avo, Administrate and others
How ActiveAdmin, Avo, Administrate, RailsAdmin and Madmin approach back-office interfaces for Rails, their dependencies and licences, and when to build your own admin.
- Rate limiting in Rails: the built-in rate_limit and Rack::Attack compared
How to stop password guessing, signup floods and greedy API clients in a Rails app: the rate_limit controller method added in Rails 7.2 and changed in 8.0 and 8.1, Rack::Attack 6.8 with throttles, blocklists and Fail2Ban, the cache store both depend on, proxies, tests and when to use which.
- Search in Rails: pg_search, Ransack, Searchkick and Meilisearch
Filtering versus full-text search in Rails: Ransack for filter forms, pg_search for PostgreSQL full-text search, and Searchkick, Meilisearch or Thinking Sphinx for a dedicated search engine.
- Soft deletes in Rails: Discard, Paranoia and acts_as_paranoid compared
How to hide records instead of deleting them in Rails: Discard's explicit scopes versus the default scopes of Paranoia and acts_as_paranoid, their status in November 2026, unique indexes, associations and when not to soft delete at all.
- State machines in Rails: AASM, state_machines and Statesman compared
When a status column needs rules, which gem should enforce them? Rails enums, AASM, state_machines-activerecord and Statesman compared on design, persistence, transactions and history, with their status in November 2026.
- Testing Rails applications: Minitest, RSpec, FactoryBot and Capybara
The Rails testing toolbox in 2026: Minitest or RSpec, fixtures or FactoryBot, system tests with Capybara, shoulda-matchers, and what replaced Webrat, Spork and factory_girl.















