<% if comp.header %> <%= erb :"components/table/header", :locals => {:row=> comp.header} %> <% end %> <% comp.rows.each do |row| %> <%= erb :"components/table/row", :locals => {:row=> row} %> <% end %>
<% if comp.pagination %> <%= erb :"components/table/pagination", :locals => {:comp=> comp.pagination} %> <% end %>