class AriaextsController < ApplicationController
  before_action :set_ariaext, only: [:show, :edit, :update, :destroy]

  # GET /ariaexts
  # GET /ariaexts.json
  def index
    @ariaexts = Ariaext.all
  end

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

  # GET /ariaexts/new
  def new
    @ariaext = Ariaext.new
  end

  # GET /ariaexts/1/edit
  def edit
  end

  # POST /ariaexts
  # POST /ariaexts.json
  def create
    @ariaext = Ariaext.new(ariaext_params)

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

  # PATCH/PUT /ariaexts/1
  # PATCH/PUT /ariaexts/1.json
  def update
    respond_to do |format|
      if @ariaext.update(ariaext_params)
        format.html { redirect_to @ariaext, notice: 'Ariaext was successfully updated.' }
        format.json { head :no_content }
      else
        format.html { render action: 'edit' }
        format.json { render json: @ariaext.errors, status: :unprocessable_entity }
      end
    end
  end

  # DELETE /ariaexts/1
  # DELETE /ariaexts/1.json
  def destroy
    @ariaext.destroy
    respond_to do |format|
      format.html { redirect_to ariaexts_url }
      format.json { head :no_content }
    end
  end

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

    # Never trust parameters from the scary internet, only allow the white list through.
    def ariaext_params
      params[:ariaext]
    end
end
