title: Creating a Rails form with a Vue component
body: <p>I'm wondering what the best way to create a Rails form using a Vue SFC (single file component) would be.</p>
  
  <p>When one uses the <code>form_for</code> method, some hidden input fields are generated by Rails, such as the authenticity token and the submission method, in the event we are submitting via <code>PUT</code> or <code>PATCH</code> instead of <code>POST</code>. However, if I extract the form into a Vue template, I lose all that nice functionality.</p>
  
  <p>How would one define a Vue SFC but not lose all the good Rails functionality we are given in a Rails template (hidden field for PUT/PATCH and for the authenticity token)?</p>
  
  <p>Thanks in advance!</p>