method

build_association

build_association(attributes, &block)
public

Returns a new, unsaved instance of the associated class. attributes will be passed to the class’s constructor.