I have the following code:
<%= turbo_frame_tag :my_frame do %>
frame
<% end %>
<%= link_to "About", about_path, data: { turbo_frame: :my_frame } %>
When I click the "About" link, the frame's content doesn't get updated. Instead, the whole page navigates to about_path
.
I know that it's not a problem with the above code because I tested the same exact code on a fresh app and it worked fine. Something about this app is different that's making this turbo frame link not work.
Any ideas?
data: { 'turbo-frame' => :my_frame }
? – Enensteindata-turbo-frame="my_frame"
when this erb gets rendered. Both your suggestion and the code in the original question are valid. But that's a good consideration to keep an eye out for – Chowchow<turbo-frame id="YOUR_FRAME_NAME">
and is must be uniq – Bufflehead