> #app/views/users/_form.html.erb > <%= form_for @user do |user_form| %> > <%= user_form.fields_for :user_profile do | user_profile_form | %> > <%= user_profile_form.text_field :favorite_food %> > <% end %> > <% end %> > > but it doesn't render user_profile_form at all. > but it does render if user_profile is profile or user_profile ( no > underscore) . > Is this the way of Rails or a bug?? > It shouldn't make any difference. Does the user actually have a profile/user_profile? (if not the subform wouldn't be rendered)
Fred > Can anyone teach me the right way to do it? > Thanks > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

