-record = local_assigns[:record] || nil
-form = local_assigns[:form] || nil

-if record
  -record.comments.each do |comment|
    =form.simple_fields_for "comments_attributes[]", comment do |comment_form|
      =comment_form.input :id, wrapper_html: {class: "hidden"}
      =comment_form.input :locale, wrapper_html: {class: "hidden"}
      =comment_form.input :comment, label: "Comment (#{comment_form.object.locale})"

-record = local_assigns[:record] || nil
-form = local_assigns[:form] || nil

-if record
  -record.comments.each do |comment|
    =form.simple_fields_for :comments, comment do |comment_form|
      =comment_form.input :id, wrapper_html: {class: "hidden"}
      =comment_form.input :locale, wrapper_html: {class: "hidden"}
      =comment_form.input :comment, label: "Comment (#{comment_form.object.locale})"

Fix weird bug with comments attributes fields
Fix weird bug with comments attributes fields
