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.