Created by: gracewashere
Why?
- It's easiest to read numbers in a table if they're right-aligned
Changes:
- Switch table elements to BEM syntax
- not sure if this is best practice, because the field elements are
not all contained in a single
.field
div. - I like it because on index and show pages, we can reuse the classes,
and wrap them in a
.field
div there.
- not sure if this is best practice, because the field elements are
not all contained in a single
- Move
html_class
from instance to class method onField::Base
so we can use the field type to align the table headers.
Tags: #ruby #design