Ruby on Rails Tuesday, May 27, 2014

Hi there-

I am a Ruby on Rails beginner trying to work with 2 models, of the
relationship:
[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
shown.

Does anyone have any idea what the problem might be?

Thank you so much in advance. Any help is appreciated!

--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/9e01dcc595a5d2abe22b076d30128126%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment