Sha256: 31bc7d33062f2c03d67e837d0cb2c260d791d3d6babe944a606b9f43cc64e9a1

Contents?: true

Size: 310 Bytes

Versions: 3

Compression:

Stored size: 310 Bytes

Contents

class FamilyGallery::LocalesController < FamilyGallery::BaseController
  def new
  end

  def create
    I18n.locale = params[:locale]
    session[:locale] = I18n.locale

    respond_to do |format|
      format.html { redirect_to root_url }
      format.json { render json: {success: true} }
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
family_gallery-0.0.8 app/controllers/family_gallery/locales_controller.rb
family_gallery-0.0.7 app/controllers/family_gallery/locales_controller.rb
family_gallery-0.0.6 app/controllers/family_gallery/locales_controller.rb