title: Parameters in AJAX request in HAML
body: <p>Here is fragments of my HAML view:</p>
  
  <pre><code>%script{:type =&gt; "text/javascript", :src  =&gt; "assets/application.js"}
  
  :javascript
        $(document).ready( function() {
          $('#post_action_trigger').click(function(event) {
            $.get('/how?name=some', function(data) {
              $('#answer').html(data);
            });
          });
        } );
  
  %body
     %form 
          %label{:for =&gt; 'name'} Name:
          %input{:type =&gt; 'text', :name =&gt; 'name', :class =&gt; 'text'}
  
          %label{:for =&gt; 'notes'} Notes:
          %input{:type =&gt; 'text', :name =&gt; 'notes', :class =&gt; 'text'}
  
          %div{:id =&gt; 'post_action_trigger'}
  </code></pre>
  
  <p>Now when I'm clicking on 'post_action_trigger'-div my javascript send ajax request '/how?name=some'.  How can I pass input-fields values into this ajax request?</p>