mercredi 13 juin 2018

How to define an action on checking a checkbox in ruby on rails

I am want to change the status of a user to admin on checking a checkbox on a form. admin is a boolean field. I want to set it to true when we check the checkbox. How can we do this?




Aucun commentaire:

Enregistrer un commentaire