title: how can I enable my form to use ajax in ruby on rails using haml?
body: <p>I am trying to create a form to send data via ajax and order to update a user (I used scaffolds, so the methods for update already exist).</p>
  
  <p>I created my form and I did something like this</p>
  
  <pre><code>%form{ :action =&gt; "/users/customsave", :method =&gt; "post", :controller =&gt; "/users", :remote=&gt;"true"}
  </code></pre>
  
  <p>according what I read with saying <code>:remote =&gt; true</code> would do it with ajax, the problem is that doesnt work and the worst part is that kills my session for some weird reason after I submit the post.</p>
  
  <p>Any idea how to do this? submit with ajax?</p>
  
  <p>Thanks</p>