Form_for not passing html attributes


I am trying to disable chrome HTML5 validations by setting the
novalidate attribute.

form_for(:customer, url: {:action => ‘update’, :id =>,
:account_settings => true},:html => {:novalidate => ‘novalidate’}) do
= render(:partial => ‘form’, :locals => {:f => f})

But when the form renders in chrome it does not show up.

And the validations stop me from submitting the form.
Thank you,


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs