Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Active Record Validations 这章的Validations Overview 节的部分翻译值得商量。 #44

Closed
CCLink2008 opened this issue Oct 15, 2015 · 1 comment

Comments

@CCLink2008
Copy link
Contributor

As you can see, our validation lets us know that our Person is not valid without a name attribute. The second Person will not be persisted to the database.
(如上所示,如果 Person 没有 name 属性,验证就会将其视为不合法对象。创建的第二个 Person 对象不会存入数据库。)
其实英文里面的意思是说Person的name属性字段不允许为空值,而不是没有属性吧。是否可以改成“如果Person的name属性没被赋值”呢?

@JuanitoFatas
Copy link
Member

請送 Pull Request : )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants