Skip to content

Instantly share code, notes, and snippets.

@SofiaSousa
Last active August 8, 2022 15:02
Show Gist options
  • Save SofiaSousa/629effb7d90ce34e0548b5a0f3cb615a to your computer and use it in GitHub Desktop.
Save SofiaSousa/629effb7d90ce34e0548b5a0f3cb615a to your computer and use it in GitHub Desktop.
index.html.erb
<section>
<%= form_with(url: items_path, method: :get) do |f| %>
...
<%= f.submit "Search" %>
<% end %>
<%= turbo_frame_tag "results" do %>
<% @items.each do |item| %>
<%= render item %>
<% end %>
...
<% end %>
</section>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment