(function(){ var bsa = document.createElement('script'); bsa.type = 'text/javascript'; bsa.async = true; bsa.src = '//s3.buysellads.com/ac/bsa.js'; (document.getElementsByTagName('head')[0]||document.getElementsByTagName('body')[0]).appendChild(bsa); })();

Organizing stylesheets in Ruby on Rails projects

2016-01-18T17:00:33-08:00January 18th, 2016|Categories: Internet|Tags: , , |

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 [...]