mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Fix method name for building associated object in nested_model_forms guide
This commit is contained in:
parent
16c51bc84a
commit
3379ebc270
1 changed files with 1 additions and 1 deletions
|
@ -106,7 +106,7 @@ Consider the following typical RESTful controller which will prepare a new Perso
|
|||
class PeopleController < ApplicationController
|
||||
def new
|
||||
@person = Person.new
|
||||
@person.built_address
|
||||
@person.build_address
|
||||
2.times { @person.projects.build }
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue