class TesteLabel4sController < ApplicationController
  before_action :set_teste_label4, only: [:show, :edit, :update, :destroy]

  # GET /teste_label4s
  # GET /teste_label4s.json
  def index
    @teste_label4s = TesteLabel4.all
  end

  # GET /teste_label4s/1
  # GET /teste_label4s/1.json
  def show
  end

  # GET /teste_label4s/new
  def new
    @teste_label4 = TesteLabel4.new
  end

  # GET /teste_label4s/1/edit
  def edit
  end

  # POST /teste_label4s
  # POST /teste_label4s.json
  def create
    @teste_label4 = TesteLabel4.new(teste_label4_params)

    respond_to do |format|
      if @teste_label4.save
        format.html { redirect_to @teste_label4, notice: 'Teste label4 was successfully created.' }
        format.json { render :show, status: :created, location: @teste_label4 }
      else
        format.html { render :new }
        format.json { render json: @teste_label4.errors, status: :unprocessable_entity }
      end
    end
  end

  # PATCH/PUT /teste_label4s/1
  # PATCH/PUT /teste_label4s/1.json
  def update
    respond_to do |format|
      if @teste_label4.update(teste_label4_params)
        format.html { redirect_to @teste_label4, notice: 'Teste label4 was successfully updated.' }
        format.json { render :show, status: :ok, location: @teste_label4 }
      else
        format.html { render :edit }
        format.json { render json: @teste_label4.errors, status: :unprocessable_entity }
      end
    end
  end

  # DELETE /teste_label4s/1
  # DELETE /teste_label4s/1.json
  def destroy
    @teste_label4.destroy
    respond_to do |format|
      format.html { redirect_to teste_label4s_url, notice: 'Teste label4 was successfully destroyed.' }
      format.json { head :no_content }
    end
  end

  private
    # Use callbacks to share common setup or constraints between actions.
    def set_teste_label4
      @teste_label4 = TesteLabel4.find(params[:id])
    end

    # Never trust parameters from the scary internet, only allow the white list through.
    def teste_label4_params
      params.require(:teste_label4).permit(:name)
    end
end
