def nested_table(options, row)
      options.map do |opt, sub_messages|
        @content = opt
        # set the sub to be sub messages. The view checks its not blank and runs this function again
        @sub = sub_messages

        render(row)

      end.join.html_safe
    end
def nested_table(options, row)
      options.map do |opt, sub_messages|
        @content = opt
        # set the sub to be sub messages. The view checks its not blank and runs this function again
        @sub = sub_messages

        render(row)

      end.join.html_safe
    end
returns a table block of html that has nested ootions
 Params:
 +options+:: is a hash of all of the record that you want to display in a nested table