The document discusses organizing frontend assets in Rails applications. It recommends using Bower for frontend packages instead of gems. Rails Assets provides a bridge between Bower and Bundler. Autoprefixer can be used instead of Compass to add vendor prefixes. Grunt or Gulp can be used for task automation. Sass and BEM methodology are recommended for writing scalable, maintainable CSS code. Key aspects include separating concerns, naming conventions, and modular file structure.
46. Writing Sass
OOCSS
Object-oriented CSS
Organize the chaos v1 2012 - http://goo.gl/6ZRJm4
47. OOCSS
Writing Sass
A CSS “object” is a repeating
visual pattern, that can be
abstracted into an independent
snippet of HTML, CSS, and
possibly JavaScript. That
object can then be reused
throughout a site.
82. Writing Sass
one block per file
group blocks into
subdirectories
83. Asset Pipeline
Recap
Rails per-controller modularity is not
scalable
OCCSS is a better solution
BEM
How to structure our Rails stylesheets
directory
85. Asset Pipeline
Bemo
http://github.com/stefanoverna/bemo
Project starter/Scaffolder
Common BEM blocks library
Grunt tasks for retina-ready sprites and
web fonts