<%= turbo_stream.append "posts" do %> <%= render partial: "posts/post", collection: @posts %> <% end %> <% unless @pagy.page == @pagy.last %> <%= turbo_stream.replace "pagination" do %> <%= turbo_frame_tag "pagination", src: posts_path(page: @pagy.next, format: :turbo_stream), loading: :lazy %> <% end %> <% end %>
<%= link_to 'Posts', root_path(only_path: true), class: 'text-decoration-none text-reset fs-2' %>
bin/importmap pin slim-select
bin/importmap pin slim-select --download
<%= stylesheet_link_tag "https://cdnjs.cloudflare.com/ajax/libs/slim-select/1.27.1/slimselect.min.css", "data-turbo-track": "reload" %>
`curl https://cdnjs.cloudflare.com/ajax/libs/slim-select/1.27.1/slimselect.min.css --output "#{Rails.root.join('app', 'assets', 'stylesheets')}/slimsel ect.min.css"`
@import url("https://cdnjs.cloudflare.com/ajax/libs/slim-select/1.27.1/slimselect.min.css");