DEV Community

Cover image for Integrating Bootstrap 4 into Rails 6

Integrating Bootstrap 4 into Rails 6

Rob Race on June 26, 2019

To install Bootstrap 4 and a theme, we are going to be adding some packages, updating some configuration and adding a few additional gems/libraries...
Collapse
 
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

Collapse
 
ark profile image
Ark Shraier • Edited

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 :)

Collapse
 
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.

Collapse
 
gathuku profile image
Moses Gathuku

Hi @rob_race , I have a question regarding this , I added admin lte in my rails 6 app but am unable to implement plugins Like the datatables, datepicker and graphs. Could you please help.