diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2015-03-21 14:56:24 -0300 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2015-03-21 14:56:24 -0300 |
commit | 9f98cf556de5c997c31a86bc19f7f280f337122f (patch) | |
tree | 8aa6a0c91397358d5b914aa84da1cf83b063b0f4 /railties/test/application/middleware/static_test.rb | |
parent | 3064533076c83517c7297adeea473fe52f0bb454 (diff) | |
download | rails-9f98cf556de5c997c31a86bc19f7f280f337122f.tar.gz rails-9f98cf556de5c997c31a86bc19f7f280f337122f.tar.bz2 rails-9f98cf556de5c997c31a86bc19f7f280f337122f.zip |
Rework form helper example to use Person.new
The previous change 92a3c8dcdf174dab5e8759031b6bbe6cd891fe3c 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]
Diffstat (limited to 'railties/test/application/middleware/static_test.rb')
0 files changed, 0 insertions, 0 deletions