% # hide "Replace with new" for SOA record begin remote_controller = active_scaffold_controller_for(column.association.klass) rescue ActiveScaffold::ControllerNotFound remote_controller = nil end @record = parent_record show_add_existing = column_show_add_existing(column) show_add_new = column_show_add_new(column, associated, @record) return unless show_add_new or show_add_existing edit_associated_url = params_for(:action => 'edit_associated', :child_association => column.name, :associated_id => '--ID--') if show_add_existing add_new_url = params_for(:action => 'edit_associated', :child_association => column.name) if show_add_new -%>