<tr data-id="<%= table_row.id %>" > <% table.columns.each do |col| %> <td <%= col.html_params %> > <%= col.block.present? ? col.block.call( table_row ) : h( table_row.send col.field ) %> </td> <% end %> </tr>