Skip to content
paolodona edited this page Sep 12, 2010 · 7 revisions

code example:

<% tableize @customers, 
  :header => 'Listing Customers',
  :generate_css => 'true' do |customer| %>            
     <h3><%= customer.name %></h3>
     <p>
       Code: <%= customer.code %>
       Place order: <%= customer.order %>
       <%= link_to 'show', .... %>
       <%= link_to 'Edit', .... %>
       <%= link_to 'Destroy', .... %>

<% end %>

Clone this wiki locally