Skip to content

Instantly share code, notes, and snippets.

@stevenyap
Created March 5, 2014 02:42
Show Gist options
  • Select an option

  • Save stevenyap/9360192 to your computer and use it in GitHub Desktop.

Select an option

Save stevenyap/9360192 to your computer and use it in GitHub Desktop.
Debugging SASS in Rails 4

Debug SASS in rails

You need to see the SASS references instead of the generated CSS. Do the following to see it.
Install the following:

group :development do
  gem 'sass-rails-source-maps'
  gem 'sass', '>= 3.3.0.rc.6'
end

Note: we need the latest sass gem which is currently at RC6 on 5th March 2014. Update it to stable if there is one available now.

Next, bundle it.
Next, remove cache rm -rf public/assets and rm -rf tmp/cache/assets.
Load up your Chrome and you should see the references to SCSS files instead of CSS files in the developer toolbars.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment