Created
November 2, 2015 21:38
-
-
Save dabonka/694b17b6d6d9bbc79443 to your computer and use it in GitHub Desktop.
view
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
<head> | |
<title>Cards</title> | |
<link rel="stylesheet" href="application.css"> | |
</head> | |
<h1>Listing cards</h1> | |
<table> | |
<tr> | |
<th>Original Text</th> | |
<th>Translated Text</th> | |
<th>Review Date</th> | |
<th>Edit</th> | |
<th>Delete</th> | |
</tr> | |
<% @cards.each do |card| %> | |
<tr> | |
<td><%= card.original_text %></td> | |
<td><%= card.translated_text %></td> | |
<td><%= card.review_date.strftime("%d/%m/%Y") %></td> | |
<td><%= link_to("Edit", edit_card_path(card) ) %></td> | |
<td><%= link_to("Delete",card_path(card), method: :delete) %></td> | |
</tr> | |
<% end %> | |
</table> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment