title: How to add radio button back into form in Rails App if user had previously selected it
body: <p>In my rails app, I'm trying to make sure that the option saved to the database for a user (in a radio button question) is present in the list of radio button options, even if it is no longer part of the list. For example, I may have at one point had the following list of options:</p>
  
  <pre><code>Option A
  Option B
  Option C
  Option D
  </code></pre>
  
  <p>And the user had previously selected "Option D" and that is what is stored in the database.</p>
  
  <p>But now, the list of options has been changed to:</p>
  
  <pre><code>Option A
  Option B
  Option C
  </code></pre>
  
  <p>When the user views his selection, it will now appear as if there is nothing saved in the database for the user. I would like to include Option D on the list only if the user has previously selected it and it's stored in the database for the user, and make sure not to duplicate any existing radio buttons. What's the best way to handle this?</p>
  
  <p>This is what my code currently looks like for that list:</p>
  
  <pre><code>&lt;div class="col-6 col-sm-4"&gt;
    &lt;div class="org-container"&gt;
      &lt;%= f.radio_button :organization_name, "Option A" %&gt;
      &lt;%= f.label :organization_name, :value =&gt; "Option A" do %&gt;
        &lt;img src="&lt;%= path_to_logo %&gt;" class="logo"&gt;
        &lt;div class="org-label"&gt;Option A&lt;/div&gt;
      &lt;% end %&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  
  &lt;div class="col-6 col-sm-4"&gt;
    &lt;div class="org-container"&gt;
      &lt;%= f.radio_button :organization_name, "Option B" %&gt;
      &lt;%= f.label :organization_name, :value =&gt; "Option B" do %&gt;
        &lt;img src="&lt;%= path_to_logo %&gt;" class="logo"&gt;
        &lt;div class="org-label"&gt;Option B&lt;/div&gt;
      &lt;% end %&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  
  &lt;div class="col-6 col-sm-4"&gt;
    &lt;div class="org-container"&gt;
      &lt;%= f.radio_button :organization_name, "Option C" %&gt;
      &lt;%= f.label :organization_name, :value =&gt; "Option C" do %&gt;
        &lt;img src="&lt;%= path_to_logo %&gt;" class="logo"&gt;
        &lt;div class="org-label"&gt;Option C&lt;/div&gt;
      &lt;% end %&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>