Skip to content

Instantly share code, notes, and snippets.

@tigawa
Last active December 11, 2015 19:59
Show Gist options
  • Save tigawa/4652612 to your computer and use it in GitHub Desktop.
Save tigawa/4652612 to your computer and use it in GitHub Desktop.
eruby クラスの指定
# application.html.erb
<body class='<%= controller.controller_name %>'>
# Procucts.css.scss
.products {
table {
border-collapse: collapse;
}
table tr td {
padding: 5px;
vertical-align: top;
}
.list_line_even {
background: #e0f8f8;
}
.list_line_odd {
background: #f8b0f8;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment