%= tag.table table.table_attributes do %>
<% table.columns.each do |column| %>
<%= tag.th column.header_attributes do %>
<% if column.is_html_safe %>
<%= column.name.html_safe %>
<% else %>
<%= column.name %>
<% end %>
<% end %>
<% end %>