all done and ugly :)

The table initializer (for lack of better words) would be a good candidate for a partial since it's being used here and the index.html.erb.