Bike database interface
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

14 lines
315 B

.container
%h1 Bikes Sold Per Year
%table.table
%thead
%tr
%th Year
%th Number of Bikes
%th Average Price
%tbody
- @yearly_data.each do |year, data|
%tr
%td= year
%td= data[:number]
%td= sprintf( "%0.02f", data[:average_price])