← back

Organizing style sheets in rails application

For my first few days in rails I thought that the default way stylesheets were arranged in rails was a flat directory of files.

It was a small eureka moment on the day i came across this method get_stylesheets in the Fedena source. Along with calling it from the layout like <%= stylesheet_link_tag(*get_stylesheets) %> , this was giving us such a neat layout.

Here is the version i now use (i get less 404’s in the log due to missing style sheets):