Sha256: d80c4526a9b71dc3ad3b441a1b29c3cdfd996c756ef529b6df8c4d101b9d320b
Contents?: true
Size: 894 Bytes
Versions: 4
Compression:
Stored size: 894 Bytes
Contents
<h2>Listing items</h2> <table> <tr> <td>date</td> <td>category</td> <td>title</td> <td>amount</td> <td>account</td> </tr> <% @items.each do |item| %> <tr> <td><%=h item.date %></td> <td><%=h item.category.name %></td> <td><%=h item.title %></td> <td><%=h item.amount %></td> <td> <% if item.is_a?(Move) %> <%=h item.account_from.name %>→<%=h item.account_to.name %> <% elsif item.is_a?(Expense) %> ←<%=h item.account.name %> <% else %> →<%=h item.account.name %> <% end %> </td> <!--<td><%= link_to 'Show', item %></td>--> <td><%= link_to 'Edit', edit_item_path(item) %></td> <td><%= link_to 'Destroy', item, :confirm => 'Are you sure?', :method => :delete %></td> </tr> <% end %> </table> <br /> <%= link_to 'New item', new_item_path %> <%= link_to 'back', root_path %>
Version data entries
4 entries across 4 versions & 2 rubygems