From 22cc4c3422c76332f914d2043ab7d613bbf9e37c Mon Sep 17 00:00:00 2001 From: Ilion Beyst Date: Tue, 8 Sep 2015 16:16:19 +0200 Subject: [PATCH] Add index datatable --- app/views/transactions/index.html.erb | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/app/views/transactions/index.html.erb b/app/views/transactions/index.html.erb index 5deca3c..e4a56d5 100644 --- a/app/views/transactions/index.html.erb +++ b/app/views/transactions/index.html.erb @@ -1,3 +1,27 @@ + + + + + + + + + -Oh cool a list of transactions + + <% @transactions.each do |transaction| %> + + + + + + + <% end %> + +
iddebtorcreditoramount
<%= transaction.id %><%= transaction.debtor.name %><%= transaction.creditor.name %><%= transaction.amount%>
+