Ruby on Rails 6 - Webpack or Gem?

What is the best way to use foundation?

Is there an good example app for each implementation?

Using the ‘foundation-rails’ gem is an easy way to start if you use Foundation < 6. With Foundation 6, something is broken and there is no sight of a quick fix soon.

Using webpack is the future and at this time, it’s pretty complicated. The Ruby on Rails’ way “Convention over Configuration” is not in the webpack genes. That means, there is always another config file to edit to have everything working in order. So, an example working fine today (end of May 2020) won’t probably be ok in 6 months or in 2025.

We have several other threads which cover working solutions for Rails 6.

https://foundation.discourse.group/search?q=rails%206

It works, you just have to configure the webpacker setup.