Hmm yeah that's a bit ugly.. We could use it to manage the data, and just use one partial for rendering out the table.

```ruby
# In the controller: @patients_table = PatientsTable.new(@patients, type: ?).. or inheritance

@patients_table.each_row do |row|
  @patients_table.each_cell do |cell|
     %td{class: "patients-table-#{cell.attribute}"}= cell.value
```

The `controls` attribute could then return the various links we want, which would unfortunately be in the form of `link_to`