Set multiple targets with turbo form submission in rails

912 Views Asked by At

I have a response that has a template with 3 different turbo_tags nested in another one.

= turbo_frame_tag 'container'
  = turbo_frame_tag 'frame1'
    = form_with url: path, data: { turbo_frame: '?' }
  = turbo_frame_tag 'frame2'
  = turbo_frame_tag 'frame3'

I want my form submission to render the same view and update the frame1 and frame3 to get updated but not the frame2. Is that possible? what should I set on turbo_frame attribute?

0

There are 0 best solutions below