title: Multiple Radio buttons that store a value - Rails Simple Form
body: <p>I'm sure this is something annoyingly simple but I'm missing it. I'm trying to create multiple radio buttons in a table, using simple form that then, instead of storing the value "true" they store the value of the particular radio button in the database.</p>
  
  <p>Here's my code:</p>
  
  <pre><code>&lt;%= render layout: 'form' do |f| %&gt;
  &lt;h1&gt;Quotes&lt;/h1&gt;
  &lt;div class="row"&gt;
  
  &lt;div class="col-md-8 col-md-offset-2"&gt;
  
  &lt;table class="table"&gt;
    &lt;thead&gt;
  &lt;tr&gt;
    &lt;th&gt;Indemnity Limit&lt;/th&gt;
    &lt;th&gt;Commercial&lt;br/&gt;Insurance&lt;/th&gt;
  &lt;/tr&gt;
    &lt;/thead&gt;
    &lt;tbody&gt;
  &lt;tr&gt;
    &lt;td&gt;£1,000,000&lt;/td&gt;
    &lt;td&gt;&lt;%= f.radio_button :quote, checked: true, value: "£57.50", input_html: { value: '£57.50' } %&gt;£57.50&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td&gt;£2,000,000&lt;/td&gt;
    &lt;td&gt;&lt;%= f.radio_button :quote, label: '£74.00', value: "£74.00" %&gt;£74.00&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td&gt;£3,000,000&lt;/td&gt;
    &lt;td&gt;&lt;%= f.radio_button :quote, id: '3', label: '£85.00', value: "£85.00" %&gt;85.00&lt;/td&gt;
  &lt;/tr&gt;
  
  &lt;tr&gt;
    &lt;td&gt;£5,000,000&lt;/td&gt;
    &lt;td&gt;&lt;%= f.radio_button :quote, label: '£101.50', value: "£101.50" %&gt;£101.50&lt;/td&gt;
  &lt;/tr&gt;
  &lt;/tbody&gt;
  &lt;/table&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p>I'm trying to achieve this:</p>
  
  <p><a href="https://i.stack.imgur.com/ck9k5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ck9k5.png" alt="Multiple radio buttons"></a></p>
  
  <p>Thanks!</p>