Class: Back::BackController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Back::BackController
- Defined in:
- app/controllers/lato_blog/back/back_controller.rb
Direct Known Subclasses
CategoriesController, PostFieldsController, PostsController, TagsController
Instance Method Summary collapse
-
#switch_current_language ⇒ Object
This function switch the default language used by the system and redirect to the same user page.
Instance Method Details
#switch_current_language ⇒ Object
This function switch the default language used by the system and redirect to the same user page.
16 17 18 19 20 21 22 |
# File 'app/controllers/lato_blog/back/back_controller.rb', line 16 def switch_current_language set_current_language params[:language] respond_to do |format| format.js end end |