title: Rails PUT method
body: <p>I am trying to use a put method to update a users (model) information.</p>
  
  <p>The form is in a haml file and has different css so I dont want to use form_for construct. </p>
  
  <p>However the request is hitting to create method although I pass a hidden input _method with value PUT as recommended for Rails.</p>
  
  <p>Here is the code:</p>
  
  <pre><code>.create-profile-form
    %form.form-horizontal.border{action: '/users',type:'hidden', name:'_method', value:'put',method:'post'}
      / Form Name
      %h5.center title
      %br
      %br
      %br
      %br
      %legend.center Create Profile
      %br
      %br
      / Text input
      .form-group
  </code></pre>
  
  <p>The use case is:</p>
  
  <p>1] User log's in using a social login. A user is already CREATEed at this step.</p>
  
  <p>2] We take that information , pre-fill a form and also request additional information in the form. When user submits it UPDATEs the existing user.</p>