RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

How to organize CSS in a Rails project

CSS has a reputation for inevitably turning into spaghetti code. It doesn’t have to be that way! You can keep styles tidy in your next Rails app by applying similar rules to CSS as you would to Ruby code: avoid formal structure until you really need it, be clear and concise in your naming, and keep your eyes open for opportunities to refactor as you go. https://mattbrictson.com/blog/organizing-css-in-rails

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in