% # 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 = url_for(:action => 'edit_associated', :id => parent_record.id, :association => column.name, :associated_id => '--ID--', :escape => false, :eid => params[:eid], :parent_controller => params[:parent_controller], :parent_id => params[:parent_id]) if show_add_existing add_new_url = url_for(:action => 'edit_associated', :id => parent_record.id, :association => column.name, :escape => false, :eid => params[:eid], :parent_controller => params[:parent_controller], :parent_id => params[:parent_id]) if show_add_new -%>