AJAX form within table

Hello

This topic has been discussed before but I can’t figure out how to make
it work. I want to have an AJAX form within a table. I know that a form
element can be either outside the table or inside a td element. I tried
this code but the form_remote_tag is not processed meaning in the
generated HTML, there is no form element.

Snippet from a partial

<%= form_remote_tag(:url => { :action => :update_x, :id => @x }) %> <%= datetime_select(:x, :gtime) %> <%= submit_tag%> <%= end_form_tag %>

I found the error, my table element was already inside a form element.