<!-- ! 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. --> <h1>Your Pragmatic Catalog</h1> <<div.entry :products < %= image_tag($_.image_url) <<h3 :title>> <<:description>> <<div.price-line< <<span.price :price | ModuleExtendFilter[PriceHelper] | :to_currency >> % form_remote_tag :url => { :action => :add_to_cart, :id => $_ } do %= submit_tag "Add to Cart" % end