News for hackers. Stuff that matters.
Re:Matestack – Reactive UIs in pure Ruby by aerovistae on Sunday November 22, 2020 @02:16AM (#25175643)
I certainly agree the classic full page reload approach is still completely relevant. It's more that most websites nowadays will employ a hybrid approach. They need a bit of both. Anything that isn't a static website is going to be using react or some other front end frameworks, and a lot of react involves asynchronous requests with REST APIs.

But most rails resources focus exclusively on the one approach, with very little of the other.

Re:Matestack – Reactive UIs in pure Ruby by universa1 on Sunday November 22, 2020 @02:31AM (#25175700)
I don't know the resources anymore, but Rails really embraced the REST (in it's opinionated way) approach with rails 3+. So any more or less up-to-date doc should indoctrinate the REST-style, especially for CRUD. You might need to make the transfer from the data is not coming from a form anymore, but some JS that sends JSON, but that is something a developer should be able to do...

And yeah, I also think a mix is what makes sense for most things, and there it can be anything from plain js/jquery through stimulusjs to react/vue.

Even though it sounds to me like I am trying to defend rails, this is not really what I am trying to do, just trying to show a little bit different perspective :-)