1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionview/lib
Carlos Antonio da Silva 9f98cf556d Rework form helper example to use Person.new
The previous change 92a3c8dcdf 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]
2015-03-21 14:56:24 -03:00
..
action_view Rework form helper example to use Person.new 2015-03-21 14:56:24 -03:00
action_view.rb Update copyright notices to 2015 [ci skip] 2014-12-31 08:34:14 +01:00