Class: FamilyGallery::LocalesController

Inherits:
BaseController
  • Object
show all
Defined in:
app/controllers/family_gallery/locales_controller.rb

Instance Method Summary collapse

Methods included from BaseFamilyGalleryController

#current_ability, #current_user

Instance Method Details

#createObject



5
6
7
8
9
10
11
12
13
# File 'app/controllers/family_gallery/locales_controller.rb', line 5

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

#newObject



2
3
# File 'app/controllers/family_gallery/locales_controller.rb', line 2

def new
end