Sass Commands in Ruby

To install Sass gem:

To run Sass from command line:

To tell Sass to watch the file and update the CSS every time when Sass file changes:

If you have many Sass files then you can also tell Sass to watch the entire directory:

You can check full Sass documentation by using the following command:


Sass commands in Rack/Rails/Merb Plugin

To enable Sass in older Rail version before Rail 3, add the following line to environment.rb:

In Rail 3, add the following line into Gemfile:

To enable Sass in Merb, add the following line to config/dependencies.rb:

To enable Sass in a Rack application, add the following lines to config.ru.





Latest Courses