The code below is working
-@items.each do |item|
%tr
%td
=item.quantity
times
%td= item.product.title
end
However I want to use { } instead of do ... end. Is it possible?
-@items.each { |item|
%tr
%td
=item.quantity
times
%td= item.product.title
}
For some reason it throws an exception. What did I do wrong?