I think you are probably looking for Compass. All these things are just baked into Rails, so I'm not sure exactly how everything links together, but I believe that if you use SCSS without a frame around it, then Compass is what you need.
Download from http://compass-style.org/ and do something like this:
gem install compass
$ compass create asd --bare --sass-dir "input_directory" --css-dir "output_directory"
You can set this in the configuration file:
output_style = :compressed
script, - ( Ruby):
files = Dir["/path/to/scss/folder/*.scss"].map do |file|
"#{file}:#{file.gsub(".scss", ".min.css")}"
end
`sass --watch #{files} --style compressed`