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
I just deployed ElectVerse, an AI-powered educational platform designed to make the Indian electoral process simple, interactive, and engaging for everyone. 💡 The Vision Interactive Timelines: Visualizing the flow from nomination to results. 🔗 Check it out live: https://electverse-1005430992890.asia-south1.run.app/ Building this has been an incredible journey of combining civic tech with cutting
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