I was looking through this response to having different paths to a second submit button How do I create multiple submit buttons for the same form in Rails?, and ended up using formaction: my_path
to specify the new path.
This works nicely if the form has the same method i.e. POST, but doesn't seem to work if the form requires a different method.
I was wondering whether anyone knew a neat solution like the formaction: my_path
solution or a rails helper or if in fact the best way forward is to reset the method via JS.