Displaying 1 result from an estimated 1 matches for "address_container".
2009 Aug 23
0
Best way of moving some jQuery from a view helper
...ddress(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'',
:show_edit_form => true })
page <<
"jQuery(''#address_list'').prepend...