I agree, I’ve been working with other languages and frameworks and in my opinion nothing comes close. People often mention Laravel as comparable or even superior, but having worked with it for a year I struggled a lot with how messed up PHP is (even with all the improvements done over the years.)
JavaScript doesn’t have anything comparable either, although I haven’t worked much with NextJS with server-side rendering, maybe this brings it closer to DX of Rails