# Enumerating two different arrays into a single HTML table by common field

**URL:** <https://www.ruby-forum.com/t/enumerating-two-different-arrays-into-a-single-html-table-by-common-field/117289>\
**Category:** Rails\
**Created:** [October 15, 2007, 6:06pm UTC](https://www.ruby-forum.com/t/enumerating-two-different-arrays-into-a-single-html-table-by-common-field/117289 "2007-10-15T18:06:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rubylover](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/8c91f0/32.png) [@rubylover](https://www.ruby-forum.com/u/rubylover)\
**Post date:** [October 15, 2007, 6:06pm UTC](https://www.ruby-forum.com/t/enumerating-two-different-arrays-into-a-single-html-table-by-common-field/117289/1 "2007-10-15T18:06:10Z")

</div>

Greetings,

I have a table I’m trying to render using two different data sets. 1  
is an array of Day objects. The other is an array of Payment  
objects. I’d like them to show up in the same HTML table and be  
sorted by the created\_at field that both database tables have.

Anyone have any suggestions for accomplishing this?

Thanks!
