在表单中加入默认提示值,如(email@email.com):
<div class="field">
<%= form.label :email,"Email*" %>
<%= form.email_field :email,placeholder: "email@email.com" %>
</div>
placeholder: "email@email.com"
2023-08-20 19:16:40
在表单中加入默认提示值,如(email@email.com):
<div class="field">
<%= form.label :email,"Email*" %>
<%= form.email_field :email,placeholder: "email@email.com" %>
</div>
placeholder: "email@email.com"