at.
at.

Reputation: 52520

Does Zurb Foundation 4 work with Rails 4?

I've installed Foundation v4.1.6 on a test Rails 4rc1 project and it seems to work fine. But I want to install it on a production environment and I'd like to know if there are any major issues I just didn't see yet?

Upvotes: 1

Views: 2395

Answers (2)

Andrew Hacking
Andrew Hacking

Reputation: 6366

Yes it works well. I don't use compass though, its not required.

There were a number of fixes to the foundation-rails gem which have not yet made it into a new release of the gem. I merged those fixes into my own fork so I could get things working smoothly with a Rails 4 project I am working on.

The details are in a related SO question I just answered here: https://stackoverflow.com/a/20473318/2238268

Upvotes: 1

ASX
ASX

Reputation: 1725

Yes now it can. I found different docs, here's how I've done it.

Gemfile

  gem 'compass-rails', github: "milgner/compass-rails", branch: "rails4"
  gem 'zurb-foundation'

Bash console

rails generate foundation:install

application.js

//= require foundation

application.css

*
*= require foundation
*/

@import "layout/*.png";
@include all-layout-sprites;

References:

Upvotes: 3

Related Questions