I would like to implement a simple paging system with turbo
<h1> Title </h1>
<%= turbo_frame_tag "page" do %>
current page : <%= params[:page] %>
<% end %>
<p> other content </p>
<%= turbo_frame_tag "next" do %>
<a href="?page=<%= params[:page].to_i + 1 %>">
Next page
</a>
<% end %>
and GET ?page=1
return (the controller render a partial when params[:page] is present)
<%= turbo_frame_tag "page" do %>
current page : <%= params[:page] %>
<% end %>
<%= turbo_frame_tag "next" do %>
<a href="?page=<%= params[:page].to_i + 1 %>">
Next page
</a>
<% end %>
but only the #next
element get reload,
and when I add target: "page"
to the #next , only the first turbo-frame get reloaded
can we put multiple target to a turbo_frame_tag or whats the right way to do this
thank you in advance