%h1 Listing tables .button= link_to 'New Table', new_table_path .tables-container - @tables.each do |table| .table .title= link_to table.title, table .player-count= "#{table.user_count} Players" - if policy(table).update? .owner-controls = link_to 'Edit', edit_table_path(table) = link_to 'Destroy', table, :method => :delete, :data => { :confirm => 'Are you sure?' }