Basic turbo todo list implementation
Based on: https://webcrunch.com/posts/digging-into-turbo-with-ruby-on-rails-7
This commit is contained in:
@@ -1,8 +1,3 @@
|
||||
<div class="mx-auto md:w-2/3 w-full">
|
||||
<h1 class="font-bold text-4xl">Editing todo</h1>
|
||||
|
||||
<%= turbo_frame_tag dom_id(@todo) do %>
|
||||
<%= render "form", todo: @todo %>
|
||||
|
||||
<%= link_to "Show this todo", @todo, class: "ml-2 rounded-lg py-3 px-5 bg-gray-100 inline-block font-medium" %>
|
||||
<%= link_to "Back to todos", todos_path, class: "ml-2 rounded-lg py-3 px-5 bg-gray-100 inline-block font-medium" %>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user