You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: stores_controller.rb
    path of file: ./repos/vglist/app/controllers
    
    the code of the file until where you have to start completion: # typed: true
class StoresController < ApplicationController
  before_action :authenticate_user!, except: [:index, :show]

  def index
    @stores = Store.order(:id).page helpers.page_param
    skip_policy_scope
  end

  def show
    @store = Store.find(params[:id])
    skip_authorization

    respond_to do |format|
      format.html
      format.json { render json: @store }
    end
  end
    
  def create
    @store = Store.new(store_params)
    authorize @store

    respond_to do |format|
      if @store.save
        format.html { redirect_to @store, notice: 'Store was successfully created.' }
        format.json { render :show, status: :created, location: @store }
      else
        format.html do
          flash.now[:error] = "Unable to create store."
          render :new
        end
        format.json { render json: @store.errors, status: :unprocessable_entity }
      end
    end