def update
      @tag = LatoBlog::Tag.find_by(id: params[:id])
      return unless check_tag_presence

      if !@tag.update(edit_tag_params)
        flash[:danger] = @tag.errors.full_messages.to_sentence
        redirect_to lato_blog.edit_tag_path(@tag.id)
        return
      end

      flash[:success] = LANGUAGES[:lato_blog][:flashes][:tag_update_success]
      redirect_to lato_blog.tag_path(@tag.id)
    end
def update
      @tag = LatoBlog::Tag.find_by(id: params[:id])
      return unless check_tag_presence

      if !@tag.update(edit_tag_params)
        flash[:danger] = @tag.errors.full_messages.to_sentence
        redirect_to lato_blog.edit_tag_path(@tag.id)
        return
      end

      flash[:success] = LANGUAGES[:lato_blog][:flashes][:tag_update_success]
      redirect_to lato_blog.tag_path(@tag.id)
    end
This function updates a tag.