app/views/records/_transactions.html.haml
/ Render the list of transactions
%table.table.table-hover
%thead
%th Input Date
%th Meters Sold
%th Profit
%th Price Per Meter
%th Trans. Year
%th Trans. Month
%th Trans. Day
%tbody
- if @records.any?
- @records.each do |record|
%tr
%td= "#{record.month}/#{record.day}/#{record.year}"
- record.content.values.each do |value|
%td= value