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

PHP while loop dynamic rowspan -

timer - Java TimerTask cancel -

android - How to read a column value in parse.com without accessing an object or a pointer -