5 tips for keeping your Rails views under control

Posted on November 21, 2013
  1. Use & enforce design and code styleguides for SASS & views
  2. Markup is about content not design
  3. Use SASS
    • variables
    • mixins
  4. Move CSS classes up in the DOM & design changes to CSS
  5. Use decorators (or helpers) to:
    • Generate classes
    • Generate copy
    • Generate HTML attributes

View my RailsConf talk on Incremental Design.




No Replies to "5 tips for keeping your Rails views under control"


    Got something to say?

    Some html is OK

    This site uses Akismet to reduce spam. Learn how your comment data is processed.