Rework form helper example to use Person.new
The previous change 92a3c8dc improved this example, but calling .create + #valid? ends up running validations twice, and we don't want to showcase that. Lets use the normal use case of building a new object and calling #save on it, which is what a basic scaffold with Active Record does. [ci skip]
Showing
想要评论请 注册 或 登录