<% # 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, parent_record) show_add_new = column_show_add_new(column, associated, parent_record) return unless show_add_new or show_add_existing temporary_id = generated_id(parent_record) if parent_record.new_record? controller_path = active_scaffold_controller_for(parent_record.class).controller_path edit_associated_url = params_for(:controller => controller_path, :action => 'edit_associated', :child_association => column.name, :associated_id => '--ID--', :scope => scope, :id => parent_record.to_param, :generated_id => temporary_id, :parent_controller => controller.controller_path) if show_add_existing add_new_url = params_for(:controller => controller_path, :action => 'edit_associated', :child_association => column.name, :scope => scope, :id => parent_record.to_param, :generated_id => temporary_id, :parent_controller => controller.controller_path) if show_add_new -%>