Insert form buttons outside of the form

Is there a Rails library that allows you to insert form buttons and use them as hyperlinks? I think I've seen it somewhere before.

0


a source to share


1 answer


Yes, you can use it button_to

, but overall it's not a great idea.



The helper button_to

is implemented as the default POST form, which means it is a poor choice for actions that are not idempotent (i.e. regular GET actions). Stick to links as much as possible.

+1


a source







All Articles