ruby - signup form -- Rails + foundation -


im using foundation-rails , creating signup form.

this im using create password field in div.

<%= text_field_tag "password", "", placeholder: "password", required: true, type: "password" %> <small class="error">invalid</small> 

for confirm password field, setting similarly, in div:

 <%= text_field_tag "password_confirmation", "", placeholder: "reenter password" , required: true, type: "password" %>  <small class="error >invalid</small>  

i want use foundation's data-equalto="password" password confirmation make sure same password entered. im unable add rails(it not work).

any ?

you can add html option need:

<%= text_field_tag "password", "", placeholder: "password", required: true, type: "password", data: { equalto: "browser" } %> 

Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -