I am a Ruby on Rails beginner trying to work with 2 models, of the
[user] has_many [user_details]
I would like to configure my app so that on the create user form, there
are certain default user_details that are created at the same time. I
attempted to perform this by building user_details in the new user
action in the user controller, and then displaying text fields for each
user_detail in the new user form. However, for some reason it seems that
the user_details are not being saved when the form is submitted. The
form redirects to the show user page, and no user_detail fields are
Does anyone have any idea what the problem might be?
Thank you so much in advance. Any help is appreciated!