Created
June 11, 2014 04:58
-
-
Save paulthegeek/d21634d7d4827fd55b7f to your computer and use it in GitHub Desktop.
Index code that needs to be tested
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%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