Update The FormDefinition#to_form method to handle also the case for a belongs_to association.