Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

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]
 
PREVIOUS NEXT
Tagged: #transfer #parameters #rails
ADD COMMENT
Topic
Name
8+8 =