flash.now[:error]="Unable to delete the assay" if !@assay.study.nil?
        format.html { render :action=>"show" }
        format.xml { render :xml => @assay.errors, :status => :unprocessable_entity }