Questions tagged «field-with-errors»

14
Rails 3:“有错误的字段”包装器更改页面外观。如何避免这种情况?
电子邮件字段: <label for="job_client_email">Email: </label> <input type="email" name="job[client_email]" id="job_client_email"> 看起来像这样: 但是,如果电子邮件验证失败,它将变为: <div class="field_with_errors"> <label for="job_client_email">Email: </label> </div> <div class="field_with_errors"> <input type="email" value="wrong email" name="job[client_email]" id="job_client_email"> </div> 看起来像这样: 如何避免这种外观变化?
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.