index.html.slim
410 Bytes
.user-index
h2
| Users
= link_to 'New User', new_admin_user_path, style: 'float: right'
- attrs = %i[name mail]
table
thead
- attrs.each do |a|
th = User.human_attribute_name(a)
th
tbody
- @object_collection.each do |model|
tr
- attrs.each do |a|
td = model.send(a)
td
= link_to 'Edit', edit_admin_user_path(model)