Skip to content
This repository
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 16 lines (13 sloc) 0.214 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
_h1_ 'Listing products'

_table do
  _tr do
    _th 'Title'
    _th 'Quantity'
  end

  @products.each do |product|
    _tr_ do
      _td product.title
      _td number_to_human(product.quantity)
    end
  end
end
Something went wrong with that request. Please try again.