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
Post a Comment