Tbh I had no idea this was even a thing until recently. I've been working with Rails for a while now and somehow never came across it. So let me explain it the way I understood it. You know how we normally do associations in Rails, User has many Posts, Post belongs to User. Two different models, two different tables. Simple. But what if a model needs to reference itself? Like same table, same mode
Comments
Try this. Find a photo on your phone that you love. Now squint, or zoom out until it's the size of a stamp. It's still the same photo. You can still tell what's in it. But something about it has gone a little flat — the part that made you take it in the first place has quietly walked out of the room. Most of us would describe what just happened with a shrug: "it's just smaller." But the truth is m
Why I built another Ruby test runner inspired by Playwright Test Ruby already has great testing tools. If you are building Rails applications today, you probably use one of these combinations: RSpec + Capybara Minitest + Capybara Rails system tests Maybe Selenium, Cuprite, Ferrum, or Playwright through Ruby bindings These tools are mature, battle-tested, and widely used. So the natural question