It is good to pass the key and value to the argument of Prefix
<%= link_to item_path(itemname: "Apple") %>
How to receive
params[:itemname]
Recommended Posts