Test and fix rendering of multiple input fields in has_many.
Merge pull request #3547 from varyonic/fix_has_many

Test and fix rendering of multiple input fields in has_many.