Does compass-rails support Ruby on Rails 4.0?

后端 未结 6 471
死守一世寂寞
死守一世寂寞 2020-12-28 14:19

I have clean new Rails 4 app with Gemfile:

#default gems
gem \'compass-rails\'
gem \'zurb-foundation\'
gem \'thin\'

with style.scss:

<
6条回答
  •  攒了一身酷
    2020-12-28 14:28

    Compass needs to have some key parts rewritten in order to support Rails 4. There is a temporary branch you can use that has hacked together some support:

    'gem "compass-rails", github: "milgner/compass-rails", ref: "1749c06f15dc4b058427e7969810457213647fb8"

    You can follow https://github.com/Compass/compass-rails/pull/59 for the latest updates.

    Update:

    There is now a version in alpha.

    gem "compass-rails", "~> 2.0.alpha.0"

    Update 2: compass-rails is no longer in alpha.

    Add the following to your Gemfile and type bundle install.

    gem "compass-rails", "~> 1.1.2"
    

提交回复
热议问题