class StoreController

START:setup

Public Instance Methods

index() click to toggle source
# File app/controllers/store_controller.rb, line 12
  def index
    if params[:set_locale]
      redirect_to store_url(locale: params[:set_locale])
    else
      @products = Product.order(:title)
    end
  end