r/rails • • 13d ago

Upgrade Ruby ASAP - Security advisories: multiple vulnerabilities in Regexp and String case conversations

Thumbnail ruby-lang.org
18 Upvotes

r/rails • • 13d ago

💼 jobs megathread Work it Wednesday: Who is hiring? Who is looking?

4 Upvotes

FORMAT HAS CHANGED PLEASE READ FULL DESCRIPTION

This thread will be periodically stickied to the top of the sub for improved visibility.

You can also find older posts again via the Megathreads" list, which is a dropdown at the top of the page on new Reddit, and a section in the sidebar under "Useful Links" on old Reddit.

For job seekers

Please adhere to the following rules when posting: Rules for individuals:

  • Don't create top-level comments; those are for employers.
  • Feel free to reply to top-level comments with on-topic questions.
  • Anyone seeking work should reply to my stickied top-level comment.
  • Meta-discussion should be reserved for the distinguished comment at the very bottom.

You don't need to follow a strict template, but consider the relevant sections of the employer template. As an example:

    TYPE: [Full time, part time, internship, contract, etc.]
    
    LOCATION: [Mention whether you care about location/remote/visa]
    
    LINKS: [LinkedIn, GitHub, blog, etc.]

    DESCRIPTION: [Briefly describe your experience. Not a full resume; send that after you've been contacted)]

    Contact: [How can someone get in touch with you?]

Rules for employers:

  • The ordering of fields in the template has been revised to make postings easier to read.
  • To make a top-level comment, you must be hiring directly; no third-party recruiters.
  • One top-level comment per employer. If you have multiple job openings, please consolidate their descriptions or mention them in replies to your own top-level comment.
  • Proofread your comment after posting it and edit it if necessary to correct mistakes.
  • To share the space fairly with other postings and keep the thread pleasant to browse, we ask that you try to limit your posting to either 50 lines or 500 words, whichever comes first.
  • We reserve the right to remove egregiously long postings. However, this only applies to the content of this thread; you can link to a job page elsewhere with more detail if you like.

Please base your comment on the following template:

    COMPANY: [Company name; optionally link to your company's website or careers page.]

    TYPE: [Full-time, part-time, internship, contract, etc.]

    LOCATION: [Where are your office or offices located? If your workplace language isn't English-speaking, please specify it.]

    REMOTE: [Do you offer the option of working remotely? Please state clearly if remote work is restricted to certain regions or time zones, or if availability within a certain time of day is expected or required.]

    VISA: [Does your company sponsor visas?]

    DESCRIPTION: [What does your company do, and what are you using Rust for? How much experience are you seeking, and what seniority levels are you hiring for? The more details, the better. If you are listing several positions in the "Description" field above, then feel free to include this information inline above, and put "See above" in this field.]

    ESTIMATED COMPENSATION: [Be courteous to your potential future colleagues by attempting to provide at least a rough expectation of wages/salary. See section below for more information.]

    CONTACT: [How can someone get in touch with you?]

ESTIMATED COMPENSATION (Continued)

If compensation is negotiable, please attempt to provide at least a base estimate from which to begin negotiations. If compensation is highly variable, then feel free to provide a range.

If compensation is expected to be offset by other benefits, then please include that information here as well. If you don't have firm numbers but do have relative expectations of candidate expertise (e.g. entry-level, senior), then you may include that here. If you truly have no information, then put "Uncertain" here.

Note that many jurisdictions (including several U.S. states) require salary ranges on job postings by law. If your company is based in one of these locations or you plan to hire employees who reside in any of these locations, you are likely subject to these laws. Other jurisdictions may require salary information to be available upon request or be provided after the first interview. To avoid issues, we recommend that all postings provide salary information.

You must state clearly in your posting if you are planning to compensate employees partially or fully in something other than fiat currency (e.g., cryptocurrency, stock options, equity, etc). Do not put just "Uncertain" in this case, as the default assumption is that the compensation will be 100% fiat. Postings that fail to comply will be removed. Thank you.


r/rails • • 50m ago

Discussion I'm getting a new role - AI babysitter

2 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 • • 5h ago

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

Thumbnail trykatara.com
2 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 • • 23h 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 • • 17h ago

Ruby Users Forum - Monthly Update - November 2026

Thumbnail rubyforum.org
2 Upvotes

r/rails • • 22h ago

Deployment kamal-watch 0.10.2 - QoL improvements

Thumbnail github.com
3 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 • • 1d ago

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

6 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 • • 10h 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 • • 22h ago

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

1 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 • • 1d ago

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

7 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 • • 2d ago

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

15 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 • • 3d ago

Steep / RBS toolkit - (steep-kit gem)

Thumbnail reddit.com
3 Upvotes

r/rails • • 5d 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.


r/rails • • 6d ago

Garry Tan Tells Ruby Conference Rails Has Never Mattered More, From Somewhere That Mattered More

33 Upvotes

r/rails • • 5d ago

Learning 🤯 Hotwire: Live form validations, character count, markdown preview

Post image
0 Upvotes

r/rails • • 7d ago

Discussion GTA on Rails

Post image
367 Upvotes

r/rails • • 7d ago

UUIDv7 primary keys in Rails and PostgreSQL

Thumbnail randomerrata.com
14 Upvotes

r/rails • • 8d ago

Gem Veri v3.0: Minimal Rails Authentication, Hardened by Real Production Use

19 Upvotes

Veri, a minimal cookie-based authentication gem for Rails, releases v3.0.0.

Veri gives you the building blocks for authentication (password hashing, database-backed sessions, multi-tenancy, impersonation, account suspension) without generating controllers or views, so you can build exactly the login flow your app needs.

We've been using Veri actively in production, and this release is built on that experience. Running it in real apps, along with reviewing the code with AI tools, helped us find and fix a lot of edge cases.

Most of the work went into multi-tenancy and impersonation, especially when the two are used together. Password changes are safer by default now, and installation works with more database setups.

This is a major release with breaking changes, so please check the migration guide before upgrading.

Check it out on GitHub: https://github.com/brownboxdev/veri-authentication

Happy coding!


r/rails • • 9d ago

Steadfast Update II - Rewriting ASTs

Thumbnail noteflakes.com
8 Upvotes

r/rails • • 10d ago

Using the Official Ruby Image for Rails Dev Containers

Thumbnail t27duck.com
18 Upvotes

I got tired of waiting for rails/devcontainer to update/release for Ruby 4.0.10, so I dug around and figured out how to use the official Docker hub image instead. One less thing I need to wait to update for when a new Ruby version drops.


r/rails • • 12d ago

Can you patch Ruby faster now?

Thumbnail paagman.dev
4 Upvotes

r/rails • • 13d ago

News Ruby Security Alert: Patch to 4.0.10, 3.4.13, or 3.3.14

131 Upvotes

If your team runs Ruby in production, I’d make time to patch today. Ruby 4.0.10, 3.4.13, and 3.3.14 are rolling out with fixes for seven vulnerabilities in regular expressions and string methods like upcase. Some can lead to remote code execution.

If you’re on Ruby 3.2 or older, your branch won’t get these fixes. Talk with your team about moving to a supported version.

Here’s the official Ruby security advisory. Pass it along to someone who looks after a Ruby app.

Happy Wednesday!


r/rails • • 12d ago

Looking for Ruby Developers to Collaborate on pinterest-dl

Thumbnail reddit.com
1 Upvotes