Skip to content

Instantly share code, notes, and snippets.

@paulthegeek
Created June 11, 2014 04:58
Show Gist options
  • Save paulthegeek/d21634d7d4827fd55b7f to your computer and use it in GitHub Desktop.
Save paulthegeek/d21634d7d4827fd55b7f to your computer and use it in GitHub Desktop.
Index code that needs to be tested
%main
%div.row
%div.large-8.columns.small-centered
.row
%div
= link_to '+Publisher', new_publisher_path, class: 'button small'
.row
%table#publishers-table
%thead
%tr
%td Name
%tbody
- @publishers.each do |pub|
%tr
%td= link_to pub.name, edit_publisher_path(pub)
%td= link_to 'Delete', pub, method: :delete, data: { confirm: 'Are you sure?' }, class: 'index-btn button tiny alert'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment