Displaying 1 result from an estimated 1 matches for "employeephonenumber".
Did you mean:
employee_phone_number
2006 Jul 05
0
Javascript repeating fields.
...#39;'employee_phone_number[]'', @employee_phone_number do |f| %>
<%= f.text_field phone_number %>
<% end %>
and the ''add phone number'' link to:
<%= link_to_function ''add phone number'', update_page { |page| @employee_phone_number = EmployeePhoneNumber.new; page.insert_html(:after, :phone_numbers, render :partial => ''phone_number'')} %>
This is a little closer, as now as long as the user only adds one phone
number (there was already an existing one with id 2), you get a params like
this:
{"employee_phone_number"...