Hello everyone :wave: I'm looking for a way to use...
# support
s
Hello everyone 👋 I'm looking for a way to use
field_container
with an attribut serialized as an Array if it's possible ? In admin side (admin/products/:product/edit) I have
Copy code
<div data-hook="admin_product_form_tags">
        <%= f.label :tags %>
        <%= f.field_container :tags do %>
          <%= f.text_field :tags, class: 'fullwidth title', multiple: true %>
        <% end %>
      </div>
Technically it's working, but I get something like
["tag1 tag2 tag3"]
where I would have something like
["tag1", "tag2", "tag3"]
✅ 1
I found the solution with
fields_for
of ActionView:Helpers:FormHelper :) https://www.ombulabs.com/blog/learning/rails/nested-forms.html