syntax error, unexpected end-of-input : <pre><code>    class PinsController &lt; ApplicationController
  before_action :set_pin, only: [:show, :edit, :update, :destroy]


  def index
    @pins = Pin.all
  end


  def show
  end


  def new
    @pin = Pin.new
  end


  def edit
  end

  def create
    @pin = Pin.new(pin_params)

    respond_to do |format|
      if @pin.save
        redirect_to @pin, notice: 'Pin was successfully created.' }
      else
        render action: 'new'
      end
    end


  def update
      if @pin.update(pin_params)
        redirect_to @pin, notice: 'Pin was successfully updated.'
      else
        render action: 'edit'
      end
    end



  def destroy
    @pin.destroy
    redirect_to pins_url
  end
  private
    # Use callbacks to share common setup or constraints between actions.
    def set_pin
      @pin = Pin.find(params[:id])
    end

    # Never trust parameters from the scary internet, only allow the white list through.
    def pin_params
      params.require(:pin).permit(:description)
    end
end
</code></pre>

<p>I know I am missing OR need to add a couple of 'ends'. However,  I am just not sure where. Thank you :) I would really appreciate someone helping me to see where I have gone wrong. I am fairly new to ruby on rails.</p>
