gregmolnar/invoicer

View on GitHub
app/views/expenses/show.html.erb

Summary

Maintainability
Test Coverage
<p id="notice"><%= notice %></p>

<p>
  <strong>Name:</strong>
  <%= @expense.name %>
</p>

<p>
  <strong>Date:</strong>
  <%= @expense.date %>
</p>

<p>
  <strong>Amount:</strong>
  <%= @expense.amount %>
</p>
<% unless @expense.file.nil? %>
<p>
  <strong>File:</strong>
  <%= link_to @expense.file_file_name, file_expense_path(@expense.id) %>
</p>
<% end %>
<%= link_to 'Edit', edit_expense_path(@expense) %> |
<%= link_to 'Back', expenses_path %>