vendredi 19 mai 2017

Submit button with Options

For one form, I want to have two submit buttons , named:

Appove, Decline

when the user clicks on Approve it should send approve: true as well

when the user clicks on Decline it should send approve: false as well

Basically the buttons should work like a checkbox

Is this possible with Rails and how to implement it? Thanks

Aucun commentaire:

Enregistrer un commentaire