%h1 Listing Data %div %a{href: uri('/data/new')} New %div %a{href: uri('/chart')} Chart %table.table %thead %tr %th ID %th Weight[kg] %th BodyFat[%] %th Measuring Time %th Created Time %th(colspan=2) Action %tbody - @data.each do |d| %tr %td= d.id %td= d.weight %td= d.bodyfat %td= d.date %td= d.created_at.strftime('%Y/%m/%d %H:%M') %td %a{href: uri("/data/#{d.id}/edit")} Edit %td %form.form-inline(method='post'){action: uri("/data/#{d.id}")} %input(name='_method' type='hidden' value='delete') .form-group %button(class='btn btn-default') %a(class='glyphicon glyphicon-minus-sign') %a(type='submit' onclick='return confirm("Delete data?")') Delete