title: using ParsleyJS in Rails form_for helper fields
body: <p>I am trying to use Parsley in my forms generated through Rails' form_for helper.  The issue is that many of Parsely's HTML options are in this form: <code>data-type="email"</code> while for form_for helper uses hashes to generate these HTML options.  My code:</p>
  
  <pre><code>&lt;%= form_for [@owner, @restaurant], html: {:"data-validate" =&gt; 'parsley'} do |f| %&gt;
  &lt;%= f.text_field :zip_code, placeholder: "zipcode", :'data-type' =&gt; "digits" %&gt;
  &lt;%= f.submit "Submit", class: "btn btn-primary" %&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p>How can I use the data-type option that Parsley provides in the form_for rails method?</p>
  
  <p>Many thanks.</p>