title: How to create embeddable HTML form from a Rails application
body: <p>I want to create an embeddable HTML <code>&lt;form&gt;</code> that POSTs to a rails controller.  This form would be embedded on a non-rails site.  </p>
  
  <p>What approach have you taken to create a form like this?  Should I use an <code>&lt;iframe&gt;</code>, or JS? Or something completely different?</p>
  
  <p>As a secondary part to this question, I'd also need this form to be able to "bubble up" events into the parent page that it is embedded into, such that I could capture all of the fields of the form to make calls to external APIs like Google Events or Marketo.</p>