def deal_with_form
      # do the action required the function then returns the message to display to the user
      notice = Trash.deal_with_form params

      respond_to do |format|
        format.html { redirect_to admin_trash_path, notice: notice }
      end
    end
def deal_with_form
      # do the action required the function then returns the message to display to the user
      notice = Trash.deal_with_form params

      respond_to do |format|
        format.html { redirect_to admin_trash_path, notice: notice }
      end
    end
Takes all of the checked options and updates them with the given option selected.
 The options for the bulk update in pages area are:-
 - Reinstate
 - Destroy