Using tubro_frame in Rails, how to submit a form which is inside the turbo frame without reloading it?
Sample code:
<%= turbo_frame_tag "sample-frame" do %>
<%= form_with(model: model, url: sample_p_url, method: :put) do |f| %>
#other fields here
<%= f.submit "Save" %>
<% end %>
<% end %>
Issue: When submitting the form, it also reloads the frame.
I tried to supply data: {turbo: true) or data: {remote: true}
to form but not working