r/rails

Spinel -- Ruby AOT Compiler
🔥 Hot ▲ 64 r/rails+1 crossposts

Spinel -- Ruby AOT Compiler

Spinel compiles Ruby source code into standalone native executables. It performs whole-program type inference and generates optimized C code, achieving significant speedups over CRuby.

Spinel is self-hosting: the compiler backend is written in Ruby and compiles itself into a native binary.

github.com
u/software__writer — 18 hours ago
▲ 2 r/rails

Start an empty session to get anonymous user id (`session.id`) ?

Seems that RoR can't start a session unless you write something to it? But what if I simply need an anonymous user id via `session.id`?

My use case is creating guest items that only the current session owner (user) can later access.

I'm coming from Laravel, where you can get an empty session whenever you need it.

Sounds like a contribution opportunity.

reddit.com
u/OS2DEV — 14 hours ago
▲ 10 r/rails+1 crossposts

I made a game for Rails devs based on a conference

Hey all, I wanted to share a fun project I have been working on. It started because I wanted the Blastoff Rails conference to have some sort of digital experience that people could do before the actual event. I have been a huge fan of the pokemon games since the 90s and a couple weeks ago I had the shower thought of making a web dev version of those games where instead of catching pokemon and battling each other you get ruby gems and battle code bugs. The maps in the game are all based off real places in Albuquerque (where the conference is taking place) and every single character in the game is based on a real person that I have talked to in the Ruby/Rails community (except for Professor Pine, I wanted him to be Professor Matz but I don't have any connection to Matz to ask his permission sadly). I am releasing it today as v1.0.0 but I plan to continue adding people (and maybe easter eggs) for at least another couple weeks. Give it a play and let me know what you think!

https://www.blastoffrails.com/

FAQ
Why didn't you write it in Ruby?
Yeah, I am a failure. It would have been way cooler to write this in Ruby (DragonRuby?) but I wanted to get this done quickly and Phaser JS made that super easy so that I could focus on the more "creative" aspects like adding people, coming up with bugs and their moves, building the maps, etc.

u/Jaded_Pangolin_285 — 13 hours ago
🔥 Hot ▲ 86 r/rails

rails is still the fastest way to go from idea to paying customers and my latest side project proved it again

u/scheemunai_ — 2 days ago
▲ 10 r/rails+1 crossposts

I got tired of eyeballing migrations in PRs, so I built a visual panel for migration history

Three months ago I merged a migration that added a null: false column with no default. The table had 800k rows. You can imagine what happened next.

The frustrating part wasn't the bug, it was that nothing in our workflow would've caught it. I was looking at raw Ruby DSL in a GitHub diff, trying to mentally reconstruct what the table looked like before and whether this would blow up on existing data. That's just... not a great system. It scales with how caffeinated your senior devs are.

So I built Migflow. It's a mountable Rails engine that reads your db/migrate/ and db/schema.rb directly. No database setup, no background jobs.

What it gives you:

A timeline of every migration with a plain-English summary of what changed. A schema diff showing the before/after of schema.rb as a unified diff. An ERD canvas, an interactive graph of tables, columns, and FKs that updates as you walk through history, with green/red highlights for what was added or removed. Audit warnings for six things that bite people: missing index on FK column, _id column without FK constraint, string without :limit, table without timestamps, dangerous ops (remove_column, drop_table, rename_column), and null: false with no default. Each migration gets a risk score and there's a rake task that plugs into CI as a pipeline gate.

https://github.com/jv4lentim/migflow

Would love feedback, especially if you've tried to solve this differently or if the audit rules are missing something obvious.

reddit.com
u/Ok-Vermicelli6781 — 24 hours ago
▲ 26 r/rails

I built a Chrome DevTools extension for debugging Stimulus/Hotwire apps — it's free and open source

▲ 13 r/rails

How do you approach PR reviews? What's your checklist, and how do you gauge code quality through comments?

u/arup_r — 2 days ago
▲ 1 r/rails+1 crossposts

AI learning resources for Rubyists in a post-vibe-code world

Hi,

As you can probably tell from my post title, I'm looking for something to learn that will extend my career as a programmer in this post-vibe-code world.

Hehe, my intro was dramatic, but that's the gist of it. I'd like to use a small educational budget that my job provides. Honestly, it used to be easier to pick, there was more time to read, learn and practice. Now my boss and colleagues pretend and tell me to push the books into RAG and let the agent code using the book's knowledge, and so on. They live under the order to automate and that the AI agent should make it faster, and they said, you should feed the company's knowledge base and architect your ideas. Honestly, I don't buy it.

Since my boss is pretty excited about everything AI-related, and he told us that he's willing to pay for AI-related things, and that anyone who comes asking for something else might as well just fossilise. I'm looking for some resources in this area. Do you have any ideas? Recommendations?

I was thinking of starting to create agents or learning to fine-tune models. Strong security concepts are always welcome. I use AI agents as a pair-programming buddy, sometimes for planning, for prototyping, for writing some testing code, for deleting dead code, for creating tickets in Jira quickly, or for asking things I just don't know.

My background is backend software development using Ruby, a lot of Rails, Elixir, and a couple of years doing small apps/services with Rust. I'm not unfamiliar with Python. I worked with different kinds of architectures, and I worked as a freelancer and employee for startups, scale-ups and enterprise organisations.

Regards and thanks,
Arsenio

reddit.com
u/ArsenioVenga — 20 hours ago
▲ 43 r/rails+1 crossposts

From Turbo Streams to Turbo Morph: Simplifying Real-Time Rails - JuanVqz's Blog

u/juanvqz — 3 days ago
▲ 21 r/rails+1 crossposts

The 2026 Ruby on Rails Community Survey is open — would love your input (9th year running!)

u/robbyrussell — 2 days ago
🔥 Hot ▲ 74 r/rails

I built a native iOS app without writing Swift or opening Xcode. Here's how.

u/joemasilotti — 4 days ago