Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
turbo frame partial rails 6
<%= turbo_frame_tag dom_id(tweet) do %>
<div class="card m-4">
<div class="card-body">
<%= tweet.content %>
<div class="card-footer bg-transparent border-success">
<%= link_to 'Show', tweet, class: 'btn btn-sm btn-primary text-white' %>
<%= link_to 'Edit', edit_tweet_path(tweet), class: 'btn btn-sm btn-warning text-white', remote: true %>
<%= link_to 'Destroy', tweet, method: :delete, data: { confirm: 'Are you sure?' }, class: 'btn btn-sm btn-danger text-white' %>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment