Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to use compass with rails 3.1
    text
    copied!<p>I have searched and searched and all I could see was that to use compass with rails 3.1 was to just edit the Gemfile like so:</p> <pre><code>gem 'compass', :git =&gt; 'https://github.com/chriseppstein/compass.git', :branch =&gt; 'rails31' gem 'sass-rails', "~&gt; 3.1.0.rc" </code></pre> <p>Yes I understand that but what next? Every tutorial I saw said just that, use that certain fork. But I am still having trouble with using compass with rails 3.1.</p> <p>I did this:</p> <pre><code>$ compass init rails . --syntax sass directory ./app/stylesheets/ create ./config/compass.rb create ./app/stylesheets/screen.sass create ./app/stylesheets/print.sass create ./app/stylesheets/ie.sass </code></pre> <p>And since 3.1 was using assets now, I just transferred all those files to 3.1. Also, I am using compass-960 plugin, so where do I require it? I tried adding a compass.rb with require 960 and require html5-boilerplate and I still keep getting errors:</p> <pre><code>Error compiling asset application.css: NoMethodError: undefined method `Error' for Compass:Module (in /Users/eumir/rails_apps/kiseki/app/assets/stylesheets/screen.sass) NoMethodError (undefined method `Error' for Compass:Module (in /Users/eumir/rails_apps/kiseki/app/assets/stylesheets/screen.sass)): </code></pre> <p>I tried doing compass compile and it gave me this:</p> <p>$ compass compile Nothing to compile. If you're trying to start a new project, you have left off the directory argument. Run "compass -h" to get help.</p> <p>As I said, I already edited my compass.rb so I am still stumped as to how to go about with this. Any help?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload