I want to create a link_to
with the name of the controller, action and also pass additional arguments. The method type is post
Currently, I have:
<%= link_to "Name", {controller: "users", action: "custom"}, method: "post" %>
How do I pass in additional arguments to the above? If it's not possible to do this with a link_to
, what are my other options?