<h1><%= @model.name %></h1>
<h3>Columns:</h3>
<table class="table table-bordered table-striped">
  <thead>
    <td>Column Name</td>
    <td>Type</td>
  </thead>
  <tbody>
    <% @columns.each do |col| %>
      <tr>
        <td><%= col.name %></td>
        <td><%= col.type %></td>
      </tr>
    <% end %>
  </tbody>
</table>

<h1><%= @model.name %></h1>
<h3>Columns:</h3>
<table class="table table-bordered table-striped">
  <thead>
    <td>Column Name</td>
    <td>Type</td>
  </thead>
  <tbody>
    <% @columns.each do |col| %>
      <tr>
        <td><%= col.name %></td>
        <td><%= col.type %></td>
      </tr>
    <% end %>
  </tbody>
</table>
<h3>Rows:</h3>
<table class="table table-bordered table-striped">
  <thead>
    <% @columns.each do |col| %>
      <td><%= col.name %></td>
    <% end %>
  </thead>
  <tbody>
    <% @model.limit(20).each do |row| %>
      <tr>
        <% @columns.each do |col| %>
          <td><%= row.send(col.name) %></td>
        <% end %>
      </tr>
    <% end %>
  </tbody>
</table>


Add rows display - last 20 rows
Add rows display - last 20 rows
