samedi 8 août 2015

check_box in ruby on rails

%p Are you a Borrower or Lender?
        = f.check_box :borrower, {}, "true", "false"
        Borrower
        = f.check_box :lender, {}, "true", "false"
        Lender

How do you I change this to either or? As currently is, one could check both boxes.




Aucun commentaire:

Enregistrer un commentaire