subject  = Subject.find(params[:id])
  if !subject.nil?
    subject.destroy