my question involves the following partial view with a remote form:
<% remote_form_for :phone_number, :url => {:controller => "edit", :action => "add_phone_number" }, :update => "phone_number_div" do |form| %>
<%= form.text_field :number%>
<%= form.select :type, PhoneNumber::PHONE_TYPE%>
<%= submit_tag "Add" %>
<% end %>
When the Add
button is pressed, the add_phone_number
action is posted to, but the form values are not in the params variable.
Does anyone know why this could be?
Most browsers won't pass the form values in the post if the form element is a child node in an illegal location in the DOM (like inside a TR, for example (and not in a TD).
I ran into this problem once.