Tableizer

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 %>

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.