Link_to has an issue with controller & post


#1

I am trying to use link_to to create a button linking to an action on a controller, but received the following error message:

Please provided a String to link_to as the the second argument. The Jets link_to helper takes as the second argument.

Looks like it requires link_to to provide text and link. This works for endpoint with GET, but link_to with method: :post still generates a link that performs GET instead of the expected POST action.


#2

Yup. Helpers only support text currently. Been bothering me. Want to add support. PRs welcome here as unsure when will have time. :thinking: