Topic: multiple records from the same form.

Hello,
I am writing an application to gather information about job applicants.  The form has two parts educational back ground and references.  I need the form to be able to accept 3 references and write them to the same table (being differentiated by a index field "RefOrder" which is currently populated using a hidden field). 
I have attempted several ways, but am not having much luck getting the second and third entries to write to the table.

This is the view that calls everything.
<%= start_form_tag :action => 'create' %>
  <%= render :partial => 'form' %>
  <%= render :partial => 'formrefheader' %>
  <%= render :partial => 'formref1' %>
  <%= render :partial => 'formref2' %> 
  <%= submit_tag "Next" %>
<%= end_form_tag %>

:form has all of the educational stuff
:formheader is only display stuff
:formref1 and :formref2 are the exact same (which seemed to be wrong, but I thought I would give it a shot)

This is the create method that is called when the form is completed.
def create
    @applicanteducationd = Applicanteducationd.new(params[:applicanteducationd])
    @applicanteducationd.dtelstupd = Date.today
    @applicanteducationd.active = "1"   
    if @applicanteducationd.save
      @applicantreferencesd = Applicantreferencesd.new(params[:applicantreferencesd])
      @applicantreferencesd.dtelstupd = Date.today
      @applicantreferencesd.active = "1"
      if @applicantreferencesd.save
        flash[:notice] = 'Records were successfully created.'
        redirect_to :controller => 'applicationonline7', :action => 'new'
      else
        render :action => 'new'
      end
    end
end

This is the code in :formref1
<table border="0" cellspacing="0">
  <tbody>
    <tr>
      <td align="Left" valign="Top"> *Name: </td>
      <td align="Left" valign="Top"><%= text_field 'applicantreferencesd', 'name'  %></td>
      <td align="Left" valign="Top"> *Telephone: </td>
      <td align="Left" valign="Top"><%= text_field 'applicantreferencesd', 'phone', "size" => 18 %></td>   
      <td align="Left" valign="Top"> *Years Known: </td>
      <td align="Left" valign="Top"><%= text_field 'applicantreferencesd', 'yearsknown', "size" => 10 %></td>     
    </tr>
  </tbody>
</table>
Any help would be appreciated.

Re: multiple records from the same form.

A list of models and how they are associated would help. In the meantime, check out my tutorial on the subject.

Railscasts - Free Ruby on Rails Screencasts

Re: multiple records from the same form.

Thank you Ryan!
Once I wrapped my head around your tutorial, I got it to work.  I had looked at your tutorial before and just not grasped what it was doing.
Thank you again!