def destroy
      self.resource = destroy_resource
      respond_to do |format|
        format.html { redirect_to resources_url, notice: "#{resource_name.humanize} was successfully destroyed." }
        format.js
        format.json { head :no_content }
      end
    end
def destroy
      self.resource = destroy_resource
      respond_to do |format|
        format.html { redirect_to resources_url, notice: "#{resource_name.humanize} was successfully destroyed." }
        format.js
        format.json { head :no_content }
      end
    end
DELETE /events/1
 DELETE /events/1.json