title: How to edit a Rails serialized field in a form?
body: <p>I have a data model in my Rails project that has a serialized field:</p>
  
  <pre><code>class Widget &lt; ActiveRecord::Base
    serialize :options
  end
  </code></pre>
  
  <p>The options field can have variable data info.  For example, here is the options field for one record from the fixtures file:</p>
  
  <pre><code>  options:
      query_id: 2 
      axis_y: 'percent'
      axis_x: 'text'
      units: '%'
      css_class: 'occupancy'
      dom_hook: '#average-occupancy-by-day'
      table_scale: 1
  </code></pre>
  
  <p>My question is what is the proper way to let a user edit this info in a standard form view?</p>
  
  <p>If you just use a simple text area field for the  options field, you would just get a yaml dump representation and that data would just be sent back as a string.</p>
  
  <p>What is the best/proper way to edit a serialized hash field like this in Rails?</p>