Sha256: e164a49e78f6d75c23a4b09dc0cc977a978379512e688e11ed2c3b051cec32bd
Contents?: true
Size: 1.08 KB
Versions: 1
Compression:
Stored size: 1.08 KB
Contents
<!-- ! 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 id="product-list"< <h1>Product Listing</h1> <<table cellpadding="5" cellspacing="0"< <<:products { :tr_class => cycle('list-line-odd', 'list-line-even'), :product_id => $_.id } < <<tr valign="top" :| Attr[:class => :tr_class] < <<td< <<img class="list-image" :| Attr[:src=>:image_url]>> <<td width="60%"< <<span class="list-title":title>> <br/> <<:description | :truncate >> <<td class="list-actions"< %= link_to 'Show', :action => 'show', :id => $_.product_id <br/> %= link_to 'Edit', :action => 'edit', :id => $_.product_id <br/> %= link_to 'Destroy', { :action => 'destroy', :id => $_.product_id }, :confirm => "Are you sure?", :method => :post %= will_paginate(@products) <br /> %= link_to 'New product', :action => 'new'
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
amrita2-2.0.2 | sample/depot/app/views/admin/list.html.a2 |