title: Rails 5 simple_form mark radio button as required & prevent form submit if not filled
body: <p>I want to mark a radio button field in my form as required, so that if the user click submit (without choosing a radio button option) he will get an error that this field is required just like what happens with normal input fields (when having the option <code>required: true</code> as shown in the picture)</p>
  
  <p>For example: (this works well)</p>
  
  <p><code>= f.input :value, required: true</code></p>
  
  <p><a href="https://i.stack.imgur.com/I2Sxm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/I2Sxm.png" alt="enter image description here"></a></p>
  
  <p>But this doesn't work:</p>
  
  <p><code>= f.collection_radio_buttons :some_symbol, [[true, t('yes')], [false, t('no')]], :first, :last, required: true</code></p>
  
  <p>I am using Rails 5.2, simple_form &amp; jQuery and although I am sure this use case faced many developers I can't find a relevant question/answer except javascript hacks (which I prefer to avoid &amp; prefer to use Rails or simple_form way to enforce this frontend validation)</p>