Answers for "link_to not passing parameters to controller"

0

transfer parameters in link_to rails

<% @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]
Posted by: Guest on December-02-2020

Code answers related to "link_to not passing parameters to controller"

Browse Popular Code Answers by Language