What about the server-side of things? If you only have to the UI sure, but if you have to write the whole thing, rails/django is going to be way less work. No need for an intermediate network JSON API with all the encoding/decoding that it entails, just routing on one side instead of two and many more.
Rails is still the best way to create server-side-rendered HTML web apps IMO, but besides the effects of SPAs on Rails, Rails is also declining fast because Ruby became a too niche language.
Tangential question, is github a proof that not every complex app has to be an SPA and it can worked really well or is this legacy thing from their part?
Curious to know if they feel they could iterate faster new features for the UI if it were an SPA.
True, with time you get good and fast at doing interop, but I can see newcomers getting frustrated with the chore and quitting prematurely because of that.