def render_index
    if @endpoint.errors.blank?
      @notice = "Endpoint was successfully #{request[:action]}ed.".gsub('ee','e') # ;)
    else
      @alert = @endpoint.errors.full_messages.join('</br>')