Skip to content

Instantly share code, notes, and snippets.

@chrisyour
Created July 31, 2013 23:04
Show Gist options
  • Save chrisyour/6127005 to your computer and use it in GitHub Desktop.
Save chrisyour/6127005 to your computer and use it in GitHub Desktop.
Compass working with a Rails 4 app using the rails4-hack branch on GitHub.
# Gemfile
gem 'rails', '4.0.0'
gem 'pg'
gem 'sass-rails', '~> 4.0.0'
gem 'compass-rails', github: 'Compass/compass-rails', branch: 'rails4-hack'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '~> 4.0.0'
# etc...
# config/initializers/compass.rb
images_dir = "assets/images"
# app/assets/stylesheets/application.css.scss
@charset "utf-8";
@import "compass/reset";
@import "compass/utilities/general/clearfix";
@import "compass/css3/inline-block";
@import "compass/css3/border-radius";
@import "compass/css3/images";
@import "compass/css3/transform";
@import "compass/utilities/sprites";
@import "compass/css3/background-size";
# etc...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment