r/rails • u/Alone_Ad6751 • 11h 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 • 11h 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 • 20h 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?