lib/generators/templates/scaffold/template/index.hbs in ember-appkit-rails-0.4.0 vs lib/generators/templates/scaffold/template/index.hbs in ember-appkit-rails-0.5.0
- old
+ new
@@ -8,13 +8,13 @@
<% attributes.each do |attribute| -%>
<th><%= attribute[:name].titleize -%></th>
<% end -%>
</tr>
{{#each}}
- <tr>
+ <tr class='<%= file_name.dasherize -%>'>
<td>{{link-to id '<%= file_name.pluralize -%>.show' this}}</td>
<% attributes.each do |attribute| -%>
- <td>{{<%= attribute[:name] -%>}}</td>
+ <td>{{<%= attribute[:name].camelize(:lower) -%>}}</td>
<% end -%>
</tr>
{{/each}}
</table>