Files
test_rails_kaungkaung/app/views/tasks/create.turbo_stream.erb
2026-01-28 14:59:13 +06:30

8 lines
254 B
Plaintext

<%= turbo_stream.append "tasks_list" do %>
<%= render partial: "tasks/task", locals: { task: @task } %>
<% end %>
<%= turbo_stream.replace "new_task" do %>
<%= render partial: "tasks/form", locals: { project: @project, task: Task.new } %>
<% end %>