Just added Compass CSS and 960gs to a Rails 2.3.2 project and almost
everything is perfect except that compass isn't automatically
recompiling (.sass) files when a page is refreshed.
These say it should be automatic (on a page refresh):
That's very strange. Are you sure you specified --rails when
installing? If you did, you would have a config/compass.config instead
of a config.rb file at the top of your project.
Hunt & pecked on my iPhone... Sorry if it's brief!
On Aug 18, 2009, at 6:48 PM, Bill Burcham <bill.burc...@gmail.com>
wrote:
> Just added Compass CSS and 960gs to a Rails 2.3.2 project and almost
> everything is perfect except that compass isn't automatically
> recompiling (.sass) files when a page is refreshed.
> These say it should be automatic (on a page refresh):
Bizarre. The only thing that comes to mind is that Sass is configured to not
recompile. Can you inspect the runtime value of Sass::Plugin.options and
send me that?
Chris
On Wed, Aug 19, 2009 at 9:48 AM, Bill Burcham <bill.burc...@gmail.com>wrote:
So the HAML plugin isn't getting my configuration (at least not at
that point in the execution). Here's the contents of /Users/Bill/
Projects/Rails/ypm/config/compass.config:
# Require any additional compass plugins here.
project_type = :rails
project_path = RAILS_ROOT if defined?(RAILS_ROOT)
# Set this to the root of your project when deployed:
http_path = "/"
css_dir = "public/stylesheets/compiled"
sass_dir = "app/stylesheets"
images_dir = "public/images"
javascripts_dir = "public/javascripts"
# To enable relative paths to assets via compass helper functions.
Uncomment:
# relative_assets = true
http_images_path = "/images"
http_stylesheets_path = "/stylesheets"
http_javascripts_path = "/javascripts"
> So the HAML plugin isn't getting my configuration (at least not at
> that point in the execution). Here's the contents of /Users/Bill/
> Projects/Rails/ypm/config/compass.config:
> # Require any additional compass plugins here.
> project_type = :rails
> project_path = RAILS_ROOT if defined?(RAILS_ROOT)
> # Set this to the root of your project when deployed:
> http_path = "/"
> css_dir = "public/stylesheets/compiled"
> sass_dir = "app/stylesheets"
> images_dir = "public/images"
> javascripts_dir = "public/javascripts"
> # To enable relative paths to assets via compass helper functions.
> Uncomment:
> # relative_assets = true
> http_images_path = "/images"
> http_stylesheets_path = "/stylesheets"
> http_javascripts_path = "/javascripts"
Lookie, it created a config.rb (in the root of my rails project). But
isn't the Compass config supposed to be in /config/compass.config? I
have the latter, but who/what reads that thing?
> Lookie, it created a config.rb (in the root of my rails project). But
> isn't the Compass config supposed to be in /config/compass.config? I
> have the latter, but who/what reads that thing?