Build_* not working despite being has_one

Hey all,

My intention here is just to create a corresponding contact when a user
signs up, but the said contact is never created, despite using build_*
with a has_one:

User model:
belongs_to :contact

Users Controller:

def signup
@user = User.new
end

def signup_success
@user = User.find params[:id]
@user.build_contact
end

protected

Any ideas why it doesn’t create a corresponding contact? Thanks for any
response.

On Feb 19, 1:45 pm, John M. [email protected] wrote:

def signup_success
@user = User.find params[:id]
@user.build_contact
end

protected

Any ideas why it doesn’t create a corresponding contact? Thanks for any
response.

Doesn’t look like you save the contact at any point.

Fred