Created by: ryanhertz
The has_many field form label displays in underscore case. The second argument to the label_tag
helper should be the display text, but here field.attribute
is a symbol. Other fields, like the string field, aren't affected because the label tag helper in the string form partial only receives one argument. When the label_tag
helper only receives one argument, it calls .to_s.humanize
on it to create the display text, so that's what I've added to the has_many form partial.