Skip to content

Instantly share code, notes, and snippets.

@yamaaki
Created August 11, 2015 09:18
Show Gist options
  • Save yamaaki/3897b654c60e4cd76ddb to your computer and use it in GitHub Desktop.
Save yamaaki/3897b654c60e4cd76ddb to your computer and use it in GitHub Desktop.
#members-index
.row
.col.s12.m9
.section
#p-title.col.s12.scrollspy
h2.p-title members
.col.s12
table.striped.responsive-table
thead
tr
th Email
th.center-align Edit
th.center-align Delete
tbody
- @members.each do |member|
tr
td.p-indent = member.email
td.center-align
= link_to edit_member_path(member), class: 'btn-floating waves-effect waves-light' do
i.material-icons edit
td.center-align
= form_for(member, url: member_path(member), html: { method: :delete }) do |f|
= button_tag class: 'btn-floating waves-effect waves-light red lighten-2', data: { confirm: 'Are you sure to delete this member?' } do
i.material-icons remove
.col.s12
= paginate @members
.col.hide-on-small-only.m3
ul.section.table-of-contents.p-right-nav
li = link_to 'members', '#p-title'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment