I do computer things and sometimes write about it here.
I'm a Software Engineer in Shanghai, China and I ship code at LingoChamp.
August 12, 2012
sass-rails gem 默认生成scss文件,当运行rails g 命令的时候, 如果喜欢sass的语法的话 则需要每次都去mv xxx.scss xxx.sass,只要在config/application.rb 里面加入
mv xxx.scss xxx.sass
config/application.rb
config.sass.preferred_syntax = :sass
这样运行rails g 生成样式文件默认使用sass语法。
rails g
last modify: Sun Aug 12 12:55:15 2012