Organizing stylesheets in Ruby on Rails projects

Ruby on Rails’ asset pipeline is an efficient, yet a bit confusing feature. Basically, Rails scaffold generates a stylesheet per controller so that your models organize according to your application’s domain model (which is quite inconvenient for building a modular codebase and reusable components). What truly needed is a custom CSS architecture that allows easily creating, modifying and reusing elements. Railsware’s Ruby on Rails developer created these helpful tips. The asset has following functionality: precompiles, … Read more