📅  最后修改于: 2022-03-11 15:04:47.246000             🧑  作者: Mango
<% @user.tasks.each do |task| %>
<%= link_to "delete #{task.name}", user_delete_task_path(@user, task_id: task.id), method: :post %>
<% end %>
# => create params[:task_id]