Ruby on Rails Thursday, January 28, 2016

On 27 January 2016 at 19:09, Mendel <mendel@nofraud.com> wrote:
> Hi I am trying to disable chrome's html5 validations. I have added
> :html => {:novalidate => 'novalidate'}
> to the form tag but when I check the form in the browser it is not there and
> the validations keep me from submitting the form.
>
> Here is all the relevant (I think) code.
>
> Enter code here...form_for(:customer, url: {:action => 'update', :id =>
> @customer.id, :account_settings => true},:html => {:novalidate =>
> 'novalidate'}) do |f|
> = render(:partial => 'form', :locals => {:f => f})
>
> And this is what the form shows in HTML
> <input class="form-control" id="customer_contact_email"
> name="customer[contact_email]" pattern="false" type="email">

Are you saying the form tag does not show at all?
Is it ok in a different browser?
Have you got the = sign?
<%= form_for...

Colin

--
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/CAL%3D0gLu-8gFmWZSmtcDx%3DzF2Qm6Tfdm-cgeQ5Jd2xEAE3P9gag%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment