Displaying 1 result from an estimated 1 matches for "add_phone".
Did you mean:
add_pane
2006 Jun 12
3
Multiple Form Fields with Same Model?
...[]", "suffix", :class => "phones" %>
ext. <%= text_field "phone[]", "extension", :class => "phones" %>
<%= link_to_remote("add",
:update => "phones-list",
:url => { :action => "add_phone" },
:loading => "",
:complete => ""
)
%>
The link_to_remote would use AJAX to insert the fields to add a new phone
number, but the issue is that I don''t know how to incorporate an id or
count field into the fields so controller can tell t...