Displaying 1 result from an estimated 1 matches for "child_index".
Did you mean:
child_idx
2009 Aug 23
0
Best way of moving some jQuery from a view helper
...a highlight
effect, appendTo which is proving awkward to achieve in the helper.
[code]
def link_to_create_address(form_builder)
link_to_function ''New address'', {:id => ''new_address_link''} do
|page|
form_builder.fields_for :addresses, Address.new, :child_index =>
''NEW_RECORD'' do |faddress|
html = render(:partial => ''address_container'',
:locals => { :faddress => faddress,
:uid => ''NEW_RECORD'',...