title: Accessing data from select_tag ruby widget through an ajax request to update data
body: <p>I have the following select_tag within a haml file:</p>
  
  <pre><code>= select_tag 'setup_form_popup', options_for_select([ ["No Setup Time","0"],
  ["15 Minute", "15"], ["30 Minute", "30"], ["45 Minute", "45"], 
  ["60 Minute", "60"], ["75 Minute", "75"], ["90 Minute","90"], 
  ["105 Minute", "105"],["120 Minute","120"]], @event.setup_time), 
  {:prompt =&gt; 'Setup Time'}
  </code></pre>
  
  <p>How can I access the data through the data attribute in an ajax request to the server? Following snippet:</p>
  
  <pre><code>        var setup_time_update = $.ajax({
              url: '/calendar',
              dataType: 'json',
              type: 'PUT',
              data: "What do I put here?";
          });
  </code></pre>
  
  <p>New to ajax so still learning the ropes. Awesome technology. Any and all help is welcomed. Cheers~</p>