[rails] using foundation 5 without installing bower

Starting with ZURB Foundation 5, they use Bower to distribute the assets, and in their "getting started" guide they propose to install bower.

I have not yet installed bower myself, but there is a really easy alternative: use rails-assets.org.

At the top of your Gemfile add a source line:

source 'https://rubygems.org'
source 'https://rails-assets.org'  ## <---- add this line

and then add the gem

gem 'rails-assets-foundation'

In your application.js add

//= require foundation

And in your application.css add

*= require foundation 

Done! :)

Add comment

Recent comments