title: Rails Bootstrap_form - Radio buttons not rendering label name in the show page
body: <p>I have a form built with the bootstrap_form gem for ruby. within the form I have some radio buttons. the form renders perfectly with the correct labeling in the edit page of the form, however once I save the form and go to the "show" page to see the results, the inputs for the radio buttons are only showing the value of the radio button (which are numbers) and not the custom label name I have assigned. How can I make the custom label appear instead of the value in the show page?</p>
  
  <p>Here is my code:</p>
  
  <p>_form.html.erb:</p>
  
  <pre><code>  &lt;%= f.form_group :gender, label: { text: "Gender" } do %&gt;
      &lt;%= f.radio_button :gender, 0, label: "Female", checked: true, inline: true  %&gt;
      &lt;%= f.radio_button :gender, 1, label: "Male", inline: true  %&gt;
    &lt;% end %&gt;
  
    &lt;%= f.form_group :nationality, label: { text: "Nationality" } do %&gt;
      &lt;%= f.radio_button :nationality, 0, label: "Kuwaiti", checked: true, inline: true  %&gt;
      &lt;%= f.radio_button :nationality, 1, label: "Non-Kuwaiti", inline: true  %&gt;
    &lt;% end %&gt;
  </code></pre>
  
  <p>show.html.erb</p>
  
  <pre><code>    &lt;p&gt;&lt;strong&gt;Full Name:&lt;/strong&gt;&amp;nbsp;&amp;nbsp;&lt;%= @profile.name %&gt;&lt;/p&gt;
      &lt;p&gt;&lt;strong&gt;Civil ID no:&lt;/strong&gt;&amp;nbsp;&amp;nbsp;&lt;%= @profile.civil %&gt;&lt;/p&gt;
      &lt;p&gt;&lt;strong&gt;Gender:&lt;/strong&gt;&amp;nbsp;&amp;nbsp;&lt;%= @profile.gender %&gt;&lt;/p&gt;
      &lt;p&gt;&lt;strong&gt;Nationality:&lt;/strong&gt;&amp;nbsp;&amp;nbsp;&lt;%= @profile.nationality %&gt;&lt;/p&gt;
      &lt;p&gt;&lt;strong&gt;Mobile no:&lt;/strong&gt;&amp;nbsp;&amp;nbsp;&lt;%= @profile.mobile %&gt;&lt;/p&gt;
      &lt;p&gt;&lt;strong&gt;Personal Email:&lt;/strong&gt;&amp;nbsp;&amp;nbsp;&lt;%= @profile.personal_email %&gt;&lt;/p&gt;
  </code></pre>
  
  <p>Thanks for the help in advance!</p>
  
  <p><strong>Update:-</strong></p>
  
  <p>New form code:-</p>
  
  <pre><code>&lt;%= f.form_group :gender, label: { text: "Gender" } do %&gt;
      &lt;%= f.radio_button :gender, 1  %&gt;
      &lt;%= f.label 'Female', inline: true, checked: true  %&gt;
      &lt;%= f.radio_button :gender, 0  %&gt;
      &lt;%= f.label 'Male', inline: true  %&gt;
    &lt;% end %&gt;
  </code></pre>
  
  <p>Tried this suggestion but still getting the same problem, only the the radio buttons are no longer in line and have incorrect formatting.</p>