title: Rails 5.2 - Going From Select To Radio Buttons
body: <p>In my ERB view, I have the following two types of select inside a form.</p>
  
  <pre><code>&lt;%= f.select :shape, Diamond.shapes.map { |k,v| [k.humanize, v] },{:include_blank =&gt; ''},{:class =&gt; "form-control", :required =&gt; true} %&gt;
  
  &lt;%= select_tag "term[]", options_for_select(Diamond.colors.map { |k,v| [k.upcase, v] }), class: "form-control" %&gt;
  </code></pre>
  
  <p>I am wanting to change it into a radio button or just button and cannot figure out how to code it correctly. The options I have are an enum saved in Diamond.shapes. </p>
  
  <p>Here are the 2 HTML element.</p>
  
  <pre><code>&lt;select class="form-control" required="required" name="wholesale[shape]" id="wholesale_shape"&gt;&lt;option value=""&gt;&lt;/option&gt;
  &lt;option value="1"&gt;Asscher&lt;/option&gt;
  &lt;option value="2"&gt;Emerald&lt;/option&gt;
  &lt;option value="3"&gt;Heart&lt;/option&gt;
  &lt;option value="4"&gt;Marquise&lt;/option&gt;
  &lt;option value="5"&gt;Oval&lt;/option&gt;
  &lt;option value="6"&gt;Pear&lt;/option&gt;
  &lt;option value="7"&gt;Princess&lt;/option&gt;
  &lt;option value="8"&gt;Radiant&lt;/option&gt;
  &lt;option value="9"&gt;Round&lt;/option&gt;
  &lt;option value="10"&gt;Cushion&lt;/option&gt;
  &lt;/select&gt;
  
  &lt;select name="term[]" id="term_" class="form-control"&gt;&lt;option value="14"&gt;D&lt;/option&gt;
  &lt;option value="15"&gt;E&lt;/option&gt;
  &lt;option value="16"&gt;F&lt;/option&gt;
  &lt;option value="17"&gt;G&lt;/option&gt;
  &lt;option value="18"&gt;H&lt;/option&gt;
  &lt;option value="19"&gt;I&lt;/option&gt;
  &lt;option value="20"&gt;J&lt;/option&gt;
  &lt;option value="21"&gt;K&lt;/option&gt;
  &lt;option value="22"&gt;L&lt;/option&gt;
  &lt;option value="23"&gt;M&lt;/option&gt;
  &lt;option value="24"&gt;N&lt;/option&gt;&lt;/select&gt;
  </code></pre>
  
  <p>Any ideas? I have been trying radio button collections but havent figured out the correct coding and am not even sure if that is the best way to go. Thank you.</p>