mercredi 17 avril 2019

I want to change default label YES NO of my checkbox radio_button from my f.input (form_for)

I'm starting using Rails.

In my form_for, I want to change label of default value YES / NO (which appear in my front view)

        <div class="row">
            <div class="col-sm-6">
              <%= f.input :experience,
                   as: :radio_buttons,
                   label:"A t-il déjà saillie ?"  %>
           </div>
        </div>

Which option should I add to change label ? How can I display option in one line ?

Thank you for your help

Aucun commentaire:

Enregistrer un commentaire