<!-- ! Excerpted from "Agile Web Development with Rails, 2nd Ed." ! We make no guarantees that this code is fit for any purpose. ! Visit http://www.pragmaticprogrammer.com/titles/rails2 for more book information. --> <<div.cart-title< Your Cart <<table :cart | CartHelper < %= render(:partial => "cart_item", :collection => $_.items) <<tr class="total-line"<------------------------------ | colspan || 2 | | | class || | total-cell | | || Total | <<:total_price_currency>> | ---------------------------------------------------- %= button_to "Checkout", :action => :checkout %= button_to "Empty cart", :action => :empty_cart