Skip to content

Instantly share code, notes, and snippets.

@glennr
Created June 3, 2010 13:29
Show Gist options
  • Select an option

  • Save glennr/423883 to your computer and use it in GitHub Desktop.

Select an option

Save glennr/423883 to your computer and use it in GitHub Desktop.
require "fileutils"
FileUtils.mkdir_p(Rails.root.join("tmp", "stylesheets", "compiled"))
ActionController::Dispatcher.middleware.use(Rack::Static, :root => "tmp/", :urls => ["/stylesheets/compiled"])
if Rails.env.to_sym == :development
require 'compass'
# If you have any compass plugins, require them here.
Compass.configuration.parse(File.join(RAILS_ROOT, "config", "compass.config"))
Compass.configuration.environment = RAILS_ENV.to_sym
Compass.configure_sass_plugin!
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment