Hello,
I am trying to disable chrome HTML5 validations by setting the
novalidate attribute.
form_for(:customer, url: {:action => 'update', :id => @customer.id,
:account_settings => true},:html => {:novalidate => 'novalidate'}) do
|f|
= render(:partial => 'form', :locals => {:f => f})
But when the form renders in chrome it does not show up.
<input class="form-control" id="customer_contact_email"
name="customer[contact_email]" pattern="false" type="email">
And the validations stop me from submitting the form.
Thank you,
Mendel.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/07efa655bfc8eced70a8ab648bda16db%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment