Hi all,

I'm trying to use nested object forms for the signup page of an app to
create the client record as well as the admin user.  My problem is
that everything in the fields_for the associated record is not getting
rendered from the view -- not the fields, not the html, nothing.

How can I make sure that when the user submits the form that the user
is also submitted???


Code:

<% form_for(@client) do |client_form| %>
  <%= client_form.text_field :company_name %>
  ...
  <% client_form.fields_for :users do |user_form| %>
    <fieldset>
    <legend>Admin Account</legend>
    Username: <%= user_form.text_field :login %>
    ...
  <% end %>
  ...
<% end %>

--~--~---------~--~----~------------~-------~--~----~
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 rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to