Listing Lab Groups

<% if @lab_groups.size > 0 %> <% LabGroupProfile.index_columns.each do |c| %> <% end %> <% for lab_group in @lab_groups %> <% profile = lab_group.lab_group_profile %> <% LabGroupProfile.index_columns.each do |c| %> <% end %> <% end %>
Name<%= c.humanize %>Edit Destroy
<%=h lab_group.name %><%=h profile.send(c) %><%= link_to 'Edit', :action => 'edit', :id => lab_group %> <%= link_to 'Destroy', lab_group, :confirm => profile.destroy_warning, :method => :delete %>
<% else %>

There are currently no lab groups.

<% end %> <%= link_to 'New lab_group', :action => 'new' %>