Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6992699
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T19:40:07+00:00 2026-05-27T19:40:07+00:00

I am trying to get Compass working on my dev machine and on an

  • 0

I am trying to get Compass working on my dev machine and on an Heroku stack.
The steps I followed are :

  • I installed the Compass gem via the Gemfile
  • I ran the command that initializes the compass project inside my 3.1 rails app

    compass init rails . –using blueprint

I got these lines:

directory ./app/stylesheets/
directory ./app/stylesheets/partials/
create ./app/stylesheets/screen.scss 
create ./app/stylesheets/partials/_base.scss 
create ./app/stylesheets/print.scss 
create ./app/stylesheets/ie.scss 

This is a bit suspicious: these files should be generated in the app/assets/stylesheets folder, right?

I added these 3 lines to my application.html.erb file:

<%= stylesheet_link_tag 'screen.css', :media => 'screen, projection' %>
<%= stylesheet_link_tag 'print.css', :media => 'print' %>
<!--[if lt IE 8]><%= stylesheet_link_tag 'ie.css', :media => 'screen, projection' %><![endif]-->

When I launched compass watch, this is what I got from the terminal:

>>> Change detected to: ie.scss
   create public/stylesheets/ie.css 
   create public/stylesheets/print.css 
   create public/stylesheets/screen.css 
>>> Compass is watching for changes. Press Ctrl-C to Stop.

I followed the steps described on the compass website and the tutorial displayed after I initialized the project.

When I go on my app, the screen.css and the print.css are not loaded because their URL is /assets/screen.css.

Anybody had this problem?
Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T19:40:08+00:00Added an answer on May 27, 2026 at 7:40 pm

    The author of compass posted a fix for rails 3.1 integration with compass – https://gist.github.com/1184843

    There is also a different way to make it work – http://spin.atomicobject.com/2011/07/12/sass-sprockets-compass-with-rails-3-1/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to get compass/sass/haml working using blueprint but not having any luck
Trying to get this example working from http://www.munna.shatkotha.com/blog/post/2008/10/26/Light-box-effect-with-WPF.aspx However, I can't seem to get
I'm trying get all of the current stack frames and do some inspection on
Hello everyone I been trying get php uploader working but having a lot of
Trying to get zeroclipboard positioned properly, and things aren't working quite as expected, even
I'm trying to get Blueprint (SCSS-Syntax) working with my Rails (3.1) project. To keep
I am trying to install https://github.com/markyoung/silk-sass-mixin $ (sudo) gem install compass $ git clone
I'm trying get some licensing code from AndroidPit.com working, but I get Unable to
I have been trying to get middleman, compass and formalize to work together, but
i'm trying with CLHeading to get compass value, - (void)locationManager:(CLLocationManager *)manager didUpdateHeading:(CLHeading *)newHeading {

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.