Fix method name for building associated object in nested_model_forms guide
This commit is contained in:
parent
16c51bc84a
commit
3379ebc270
|
@ -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 New Issue