DEV Community


Discussion on: Integrating Bootstrap 4 into Rails 6

patrixr profile image
Patrick R

Question a bit out of the blue, but these days is there still value in having backend rendering and the UI integrated with rails ? As opposed to a bundled app which just gets delivered statically ?

I've been doing the latter for a while now (react, vue, etc), just curious to hear your thoughts

tomk32 profile image
Thomas R. Koll

SEO is the primary reason for me to stay away from SPA and stick to Rails for a longer time. My landing pages and SEO content are as simple as can be to keep the chance of them to fail for some reason as low as possible.

ark profile image
Ark Shraier

I'm not the author of this post, but still writing server side rendered UI in Rails.

Maybe there're not all points, but some major ones in my humble opinion:

  1. In Rails writing server-side UI is out-of-the-box so it cost you almost no time. Also Turbolinks can make it behave/feel like SPA.

  2. You need server-side rendered pages for the SEO (it's changing now)

  3. No overhead with authorization (think JWT)

  4. You can sleep well not chasing for super-fast changing JS frameworks world :)