<% @commissioners.each do |commissioner| %> <% end %>
Name Employee Name Commission type Joined Date Resigned Date Active
<%= commissioner.name %> <%= commissioner.employee.name rescue '-' %> <%= commissioner.commission.menu_item.name rescue '-' %> <%= commissioner.joined_date.utc.getlocal.strftime('%Y-%b-%d') rescue '-' %> <%= commissioner.resigned_date.utc.getlocal.strftime('%Y-%b-%d') rescue '-' %> <%= commissioner.is_active %> <%= link_to 'Show', settings_commissioner_path(commissioner) %> <%= link_to 'Edit', edit_settings_commissioner_path(commissioner) %> <%= link_to 'Destroy', settings_commissioner_path(commissioner), method: :delete, data: {confirm: 'Are you sure?'} %>