r/rails • • 14h ago

Help Laid off post maternity leave

0 Upvotes

Hi everyone,
Am asked to leave the company after 4 months am back from maternity leave, am looking for a job now.
I have 8 years of experience with ROR


r/rails • • 18h ago

Pairin' with Aaron: José on Ractors

Thumbnail youtube.com
5 Upvotes

r/rails • • 21h ago

Have you moved on from Rails?

24 Upvotes

I'm thankful that Rails kicked off my career but I no longer use it other than at work. Has anyone else moved on to some other framework/tech stack?

I've really been enjoying Elixir/Phoenix, scales much better and doesn't use a lot of resources.


r/rails • • 23h ago

A record's field history, with who changed each value and the request or job behind it (Rails gem)

Post image
0 Upvotes

Your database keeps the last value. bookings.status says refund_failed and that's all it knows.

paper_trail and audited get you the versions, and who made them if you set that up. What you don't get is the rest of the story: the request that started it, the jobs that ran after it, and a page someone in support can read without SQL.

That's what a recent part of EZLogs (which I'm building) does: a Fields tab on every record.

The screenshot is booking BRK-3JRW from our demo. Status went confirmed, disrupted, refund pending, refund failed. Each step shows who set it (the passenger, someone from ops, an AI agent calling the API) and when, and links to the action behind it. That's where you see why the refund failed: the card had expired. The fields set at creation are listed too, with who created the record.

How it works in Rails:

- after_create / after_update / after_destroy callbacks record each row change, with old and new values from saved_changes
- update_all, delete_all, insert_all and upsert_all skip callbacks, so those are picked up from sql.active_record
- a request and the jobs it enqueues (ActiveJob or Sidekiq) share a correlation id, so a change made in a job a few seconds later lands in the same action as the request that caused it
- the server folds the changes per record into each field's history

Setup: add the gem, run rails generate ez_logs_agent:install, set EZLOGS_API_KEY. No tracking calls in your code. It only reads, and it drops passwords, tokens and encrypted columns before anything leaves the app.

Limits, upfront:

- it only sees changes made through the app, an UPDATE typed in psql won't show up
- history starts when you install it
- JSON and array columns aren't in the field history, only plain values

Demo, no signup: https://app.ezlogs.io/demo (Pulse, search BRK-3JRW, open Fields). The demo app is Next.js, the Rails gem sends the same event format. Gem: https://github.com/dezsirazvan/ez_logs_agent

Free while in beta. Real question: how do you show record history to non-devs today? Has anyone built an admin page on top of paper_trail or audited?


r/rails • • 1d ago

Question Kamal users: what did you move to when you needed autoscaling?

14 Upvotes

Kamal has been great for getting apps onto a server or two with very little fuss. But I keep wondering what the next step looks like once traffic gets spiky and fixed servers aren't enough.

For those of you who outgrew Kamal (or stretched it further):

  • Did you add autoscaling around Kamal somehow, or move to something else (Kubernetes, ECS, Fly, Render, etc.)?
  • What was the trigger that made you switch?
  • Anything you wish you'd known before making the jump?

Curious how people handle the jump from "a few servers" to "scales on its own."


r/rails • • 1d ago

Learning Used Kamal to deploy my Rails side project and it just worked

Post image
0 Upvotes

r/rails • • 1d ago

Podcast 🎙️ Remote Ruby – SF Ruby Recap, AI-Assisted Rails Upgrades, and Security

Thumbnail remoteruby.com
4 Upvotes

In last week’s Remote Ruby episode, Drew Bragg joined Chris, David, and me to discuss:

  • Highlights from SF Ruby 2026
  • Using AI agents to accelerate Rails upgrades
  • Recent Ruby security vulnerabilities
  • AI-powered security testing
  • Keeping pull requests small and reviewable

Has anyone successfully used AI agents to tackle a major Rails upgrade yet?


r/rails • • 1d ago

Learning Writing code for sending client state updates to backend in ruby

3 Upvotes

Is writing JS a must for setting up interaction with client state more complex than forms?

For example:

- i want to submit state of some checkboxes every 10 seconds (preferably only if changes). only trigger rails will provide by default is button press (others with stimulus which requires js boilerplate?)
- i want to submit state of specific elements. they can belong only to one form, so when you have multiple buttons that need to submit partially same fields, it will always feel like hacking (submitting whole form)

I know JS, just feels like rails/erb should have some pre-made solution for working with input beyond forms


r/rails • • 1d ago

Ruby Users Forum Wrapped 2026

Thumbnail rubyforum.org
0 Upvotes

r/rails • • 1d ago

I need suggestions for projects to build on ruby on rails

0 Upvotes

r/rails • • 3d ago

Learning GVL and concurrent programming

Thumbnail reddit.com
3 Upvotes

r/rails • • 3d ago

I built a git client that shows also credentials.yml.enc diffs

0 Upvotes

Something that always bugged me in code reviews was that changes to config/credentials.yml.enc are encrypted noise.

While I was building gitto, I added a nice feature for Rails to show these files in plain text when the key is in the working tree. I automatically decrypt them in local changes, commits and pull request reviews. Decryption happens only in the app, so nothing is stored or sent out. Merge conflicts in those files are resolved in plain text too and saved encrypted again!

It's my app and it's paid (unlimited trial), for macOS, Linux and Windows: https://gitto.app

Happy to hear what else would help in your daily work.


r/rails • • 3d ago

Discussion I'm getting a new role - AI babysitter

31 Upvotes

I just wrapped up reviewing my team's pull requests. Here’s what I think: AI still has a hard time writing code that’s easy to maintain, and that’s really important for our current products.

I keep turning my comments on pull requests into guidelines for AI, and I feel like I’m becoming an AI babysitter. What do you think about your role in your projects? Do you think we’ll see this AI babysitter role pop up in the job market anytime soon?


r/rails • • 4d ago

A year ago I posted my reverse job board here. You said it was LinkedIn. Here's what I changed.

Thumbnail trykatara.com
7 Upvotes

A year ago I shared Katara, a reverse job board for web devs. The feedback was fair: RailsDevs had just shut down doing the same thing, a couple of you said "so, LinkedIn", and someone asked if anyone was paying. Nobody was.

I kept building, and two things became clear.

A reverse job board on its own doesn't hold up. Companies won't pay to search a small pool of developers, and developers won't keep a profile current if nobody is hiring from it. RailsDevs showed that, and so did my first year. So Katara had to be useful to a team before a single developer had joined.

Hiring is something you do, not a page you read. The first version was a list of developer profiles and nothing else. A team couldn't even post an opening. What they actually needed was to post a role, see who applied, move people through stages and book interviews without leaving the app. That is a much more hands-on product than the one I launched, and it's why I rebuilt the front end (Hotwire to Inertia and Svelte) along the way.

What's different now:

- Teams can post openings on their own job board, track applicants in a pipeline and schedule interviews.

- Developers set a salary floor up front, and teams see it before they message you.

- The mobile sidebar works now. Thank you to arish-rails-react for reporting it (took longer than expected, lol).

What I don't have yet is enough developers. If you're a Rails dev open to hearing from teams, a profile takes a few minutes and it's free: trykatara.com

Same as last time, tell me what's wrong with it as I want to continue improving.


r/rails • • 4d ago

I built a free Rails 8.1 video series. Would you review one three-minute episode?

0 Upvotes

A video doesn't tell you it has gone stale. When I was learning Rails, I read a lot of books and watched a lot of videos, and the hard part was knowing which ones were still true.

Content goes stale because it's hard to make, so nobody remakes it. I built a tool that changes that. Each episode of Understanding Rails is built in code and re-cut when something is wrong. The visuals are rendered and filmed frame by frame, and the narration is an AI voice (Kokoro). Nothing is screen-recorded.

Each episode says which Rails version it teaches. A fixed episode becomes a new version and shows what changed. A working Rails developer can endorse an exact version with their GitHub account, and a re-cut starts its endorsements over.

In the Air Force, new airmen watched what the veterans wore. Their boots held up to the wear and didn't smoke your feet by the end of the day.

The series is free: 33 of 72 episodes are out, about three minutes each, with transcripts and questions to check yourself. On the job takes you through a real ticket in a small Rails app, from a failing test to a pull request that CI checks.

If you've shipped Rails, I'd appreciate three minutes on this episode:

https://rails.vetmgmedia.com/episodes/1-what-happens-when-you-click

What would you correct before handing it to a new teammate? Drop it here, or use Feedback under the video. That works signed out. If you'd hand it to them as-is, you can endorse that exact version with GitHub.

I drafted this post with help from Claude and ChatGPT.


r/rails • • 4d ago

Ruby Users Forum - Monthly Update - November 2026

Thumbnail rubyforum.org
3 Upvotes

r/rails • • 4d ago

Deployment kamal-watch 0.10.2 - QoL improvements

Thumbnail github.com
7 Upvotes

A few small improvements:

  • Better CPU expansion behavior:

    • What it does now: when you click on the CPU name on a host it only opens/closes the CPU trackers for that specific host.
    • What it used to do: it was toggling the CPU monitoring for all hosts.
  • Expandable/collapsible kamal service deployment "History":

    • What it does now: the deploy history on a per-service basis toggles opening/closing the history
    • What it used to do: it used to open a new page and a full page refresh. Much better to have it inline for quick access.
  • New list-of-services collapse:

    • What it does now: you can click on the hostname itself to expand/collapse the list of services under a specific kamal hosts, and whatever state you left it in is stable across updates/page refreshes. This expand/collapse of the service list is especially helpful if you monitor lots of kamal hosts.
    • What it used to do: the service list was not previously collapsible.
  • New configurable `shutdown` command:

    • What it does now: you can click the gear icon next to a host to add a new `shutdown` command (optional). Usually you want kamal hosts to be running all the time, but sometimes you have things like test/QA systems that don't need to be always on. This function is protected behind a confirmation dialog box as well.
    • What it used to do: there was no configurable `shutdown` command previously

r/rails • • 4d ago

Open source I built schema_shard — dynamic Rails 8 database sharding & fail-closed multi-tenancy (when static connects_to isn't enough)

2 Upvotes

Hey r/rails!

I recently published an open-source gem called schema_shard and would love some eyes on it from folks running multi-tenant or sharded Rails 8 apps, whether it’s code review, edge-case feedback, or testing it out in a staging setup.

Why not just use Rails' built-in `connects_to**` / `connected_to`?**
Rails 8's native multi-DB support is great when you have a fixed, known set of shards declared at boot time on `ApplicationRecord`. Where it starts getting painful is when you need dynamic, runtime-driven routing or schema/database-level tenant isolation* *without bloating your connection count.

schema_shard sits on top of Active Record's connection pooling (`HashConfig` / `PoolConfig` + `IsolatedExecutionState`) to handle three things out of the box:

  • Dynamic Config-Driven Shards (No Static `connects_to` Boilerplate):

  • Define shards in `config/shards.yml` (or pass a runtime `Proc`) and route blocks with `SchemaShard.with('acme_corp', shard_key: 'replica_1')` or `SchemaShard.on_shard('write_shard_2', read_only: false)` without hardcoding shard mappings on every model class.
  • ***LRU-Bounded Connection Pools:***Instead of holding open pools forever for every shard/tenant combination, it uses an atomic refcounted LRU registry (`max_pools`) to evict idle pools safely under load without racing active queries.
  • ***Fail-Closed Multi-Tenant Isolation:***Supports PostgreSQL (`search_path` or `ros-apartment`), MySQL/MariaDB (`trilogy` & `mysql2`), and per-tenant SQLite3 files. In `:strict` mode, missing/blank tenants, system schemas, or nested tenant switches inside an open transaction fail closed rather than silently falling back to `public` or your primary DB.

Looking for Feedback
I'd genuinely appreciate any feedback on the architecture, pool lifecycle edge cases, or how you're handling dynamic sharding in Rails 8 today:

GitHub: https://github.com/syrens/schema_shard

RubyGems: https://rubygems.org/gems/schema_shard

Thanks in advance for checking it out!


r/rails • • 4d ago

Question Is the Scenic gem abandoned?

11 Upvotes

I love Scenic but it looks like neither Derek nor Caleb are doing anything with it. There are a bunch of open issues and PRs, and inb4 "sometimes software is finished": yes, that's true, but if you check the issues list there are some legitimate bugs.

Alternatively, is there another gem everyone uses for creating/managing views?


r/rails • • 4d ago

Hotwire users: how should a vanilla JS component library integrate with Turbo?

7 Upvotes

I maintain CoreUI, a Bootstrap-based UI kit with vanilla JS components. We're adding proper Turbo support and would like input from people who ship Hotwire apps.

What we measured:

  • Without teardown, Turbo's snapshot cache restores widgets as dead HTML, and initialising again on turbo:load duplicates them on every Back.
  • What works is disposing on turbo:before-cache and turbo:before-render, plus handling frames and streams separately. That's about 16 lines of glue.

Questions:

  1. Would you rather wrap components in your own Stimulus controllers (connect → create, disconnect → dispose), or get an official Stimulus controller or Turbo integration file from us?
  2. Do you use Turbo 8 page-refresh morphing on pages with JS widgets? Do you use data-turbo-permanent, or let them rebuild?
  3. Turbo Streams: do you replace regions that contain interactive components, and do you expect them to come back initialised?
  4. Have other UI kits handled this well or badly for you? Examples welcome.

r/rails • • 5d ago

rails-jsdom 0.3.1: browserless system-test-style tests now work for apps that bundle their JavaScript (esbuild, Bun, Vite, webpack)

8 Upvotes

rails-jsdom runs system-test-style tests (visit, click_on, fill_in, assert_text) without a browser. 0.3.1 is out:

  • Bundled apps: works with esbuild, Bun, Vite and webpack, not just importmap. Three settings in test_helper.rb.
  • Hidden and disabled elements: actions skip them, like Capybara.
  • Turbo, React, <dialog> and Trix: a batch of fixes where jsdom differed from a real browser.
  • header**:** set a request header, such as a phone's User-Agent.
  • Action Cable: fixed state leaking from one test into the next.
  • Missing pin files: the error now names the pin and its file.

Thanks to Jared Moody (@jaredmoody), who moved about 300 Playwright tests of a Vite app over and sent back every fix. He measured about 0.4 s per test against 1.3 s in Playwright. Thanks also to Jonas Porto (@jonasporto) for the missing-pin fix.

Changelog: https://github.com/jakehow/rails-jsdom/blob/v0.3.1/CHANGELOG.md

Repo: https://github.com/jakehow/rails-jsdom

If you test it on your app, please tell me which of your system tests don't convert or send PRs. Thanks!


r/rails • • 6d ago

A maintained drop-in for wkhtmltopdf: same command, so wicked_pdf apps keep their templates

16 Upvotes

I built marqius-wkhtmltopdf with my company. It is a drop-in replacement for wkhtmltopdf, built from scratch on its command line.

What it has that the Chromium routes do not: the command and the options are the same, so the templates in a wicked_pdf or PDFKit app stay as they are. There is no browser to run. It is one statically linked file.

In a Rails app it is one line in the Gemfile, in place of `gem "wkhtmltopdf-binary"`:

gem "marqius-wkhtmltopdf"

wicked_pdf and PDFKit find the program by themselves. It installs on Heroku-24, Debian 13, Alpine and macOS on Apple silicon. I ran it today on Ubuntu 22.04, Ubuntu 24.04 and macOS.

I am glad to hear where a PDF of yours prints differently. That is the feedback we work from.

Gem: https://rubygems.org/gems/marqius-wkhtmltopdf

Guide: https://marqius.com/wkhtmltopdf/rails-ruby/

Disclosure: I build Marqius. The Community licence is free for personal and open-source projects; the commercial licence is for businesses. Plans and licences: https://marqius.com/wkhtmltopdf-buy/


r/rails • • 7d ago

Steep / RBS toolkit - (steep-kit gem)

Thumbnail reddit.com
3 Upvotes

r/rails • • 9d ago

Learning Start with one server, even if you plan to take over the world

Thumbnail widefix.com
20 Upvotes

A lesson from maintaining legacy Ruby on Rails apps.