re rendering into a form/table

I have this inside of a template where I have a remote form with the
form fields inside of a table:
<div id='ingredients_div'>
   <%= render :partial => 'ingredients',
      :locals => {:attr => attr} %>
  </div>

my "_ingredients.html.erb" template is like so:

You have not shown us how the form itself is fitted into or around the
table. A form cannot lie inside a table unless it is entirely within
one cell. A table can lie entirely within a form.

If you are not sure whether you have valid html copy the entire page
source (View > Page Source or similar in your browser) and paste it
into the w3c html validator. Once you have valid html then try the
remote stuff again.

Colin