title: Rails 4 + HTML: Combine form responses to generate 1 string entry
body: <p>I have a question on a form with 15 checkboxes.  I would like to take all items that are "checked" and combine the labels into a string that is entered into my database.  I would rather not make a separate DB entry for every checkbox and selecting individuals on this field is not important, I simply need to record the response.  </p>
  
  <p>Is there an easy way to combine these and make that the value entered into the DB?</p>
  
  <p>The following displays right, but I'm not sure how to actually submit the correct information.</p>
  
  <p><strong>HTML</strong></p>
  
  <pre><code>&lt;div class="form-inline"&gt;
      &lt;div class="form-group col-sm-12" style="margin-bottom: 10px"&gt;
          &lt;div class="field"&gt;
              &lt;div class="input check_boxes optional remote_issues"&gt;
                  &lt;label style="display:block; padding-bottom: 1em" class="check_boxes optional"&gt;Which of the following pevent you from reaching your desired weight?&lt;/label&gt;
  
                  &lt;% boxes = ["Lack of Knowledge", "Physical Limitations", "Lack of Social Support", "Hunger", "Cravings", "Frequent Travel", "Social Events", "No Time", "Erratic schedule", "Finances", "Family Habits", "Stress", "Hormonal Issues", "Medications", "Illness", "Poor Sleep", "Health Conditions", "Age", "Slow Metabolism", "Alcohol", "No Exercise", "Emotional Eating", "Food Preferences", "Other"] %&gt;
  
                  &lt;% boxes.each do |box| %&gt;
                      &lt;%= render "health_intake", name: box %&gt;
                  &lt;% end %&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p><strong>_health_intake Partial</strong></p>
  
  <pre><code>&lt;span class="checkbox col-xs-3"&gt;
      &lt;label for="remote_issues_lack_of_knowledge"&gt;
          &lt;input type="checkbox" value=#{&lt;%= name %&gt;} name="remote[issues][]" class="check_boxes optional" style="margin-right:1em"&gt;&lt;%= name %&gt;
      &lt;/label&gt;
  &lt;/span&gt;
  </code></pre>