r/rails • u/Alone_Ad6751 • 14h ago
Help Laid off post maternity leave
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 • u/Alone_Ad6751 • 14h ago
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
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 • u/Total_Product9154 • 23h ago
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 • u/MacIsAGenius • 1d ago
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):
Curious how people handle the jump from "a few servers" to "scales on its own."
r/rails • u/diouthene • 1d ago
r/rails • u/andrewmcodes • 1d ago
In last week’s Remote Ruby episode, Drew Bragg joined Chris, David, and me to discuss:
Has anyone successfully used AI agents to tackle a major Rails upgrade yet?
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 • u/Dangerous-Egg-6974 • 1d ago
r/rails • u/coorasse • 3d ago
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.
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 • u/Curious_Event_5669 • 4d ago
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 • u/Tommy2118 • 4d ago
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 • u/javier_cervantes • 4d ago
r/rails • u/jefflunt • 4d ago
A few small improvements:
Better CPU expansion behavior:
Expandable/collapsible kamal service deployment "History":
New list-of-services collapse:
New configurable `shutdown` command:
r/rails • u/Dry-Exam-3338 • 4d ago
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:
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 • u/flanger001 • 4d ago
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?
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:
turbo:load duplicates them on every Back.turbo:before-cache and turbo:before-render, plus handling frames and streams separately. That's about 16 lines of glue.Questions:
connect → create, disconnect → dispose), or get an official Stimulus controller or Turbo integration file from us?data-turbo-permanent, or let them rebuild?replace regions that contain interactive components, and do you expect them to come back initialised?r/rails • u/jake_how • 5d ago
rails-jsdom runs system-test-style tests (visit, click_on, fill_in, assert_text) without a browser. 0.3.1 is out:
test_helper.rb.<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.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 • u/Sea_Pianist_9694 • 6d ago
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/
A lesson from maintaining legacy Ruby on Rails apps.