Currently I have this
```
= turbo_frame_tag "xxx" do
= f.fields_for :documents, @onboarding.documents.build do |task|
= render 'shared/document_upload', form: task
```
update.turbo_stream.haml
```
= turbo_stream.update "xxx" do
= render 'shared/document_upload', form: task
How can I pass the fields for form object to the update.turbo_stream, or how can I build a new fields_for on the update?
Person who answers correctly will get $50 through paypal!!
Im stumped!
Are you trying to do something like nested forms? Once the user uploads a document, you want it to add a new field where they can select an additional document? If this is the case, it may be better to use a Stimulus controller. This episode may help. https://www.driftingruby.com/episodes/nested-forms-from-scratch-with-stimulusjs