Class: Cms::LocalesController
- Inherits:
-
BaseController
- Object
- ActionController::Base
- ApplicationController
- ApplicationController
- BaseController
- Cms::LocalesController
- Defined in:
- app/controllers/cms/locales_controller.rb
Instance Method Summary collapse
Methods included from PageHelper
#able_to?, #cms_toolbar, #container, #container_has_block?, #current_page, #page_title, #render_breadcrumbs, #render_portlet
Methods included from PathHelper
#cms_connectable_path, #cms_index_path_for, #cms_index_url_for, #cms_new_path_for, #cms_new_url_for, #edit_cms_connectable_path
Methods included from ErrorHandling
#handle_access_denied, #handle_server_error, included
Instance Method Details
#index ⇒ Object
3 4 5 6 |
# File 'app/controllers/cms/locales_controller.rb', line 3 def index [:locale] = params[:locale] redirect_to request.env["HTTP_REFERER"] end |
#jslocales ⇒ Object
8 9 10 |
# File 'app/controllers/cms/locales_controller.rb', line 8 def jslocales render :js => "var BCMSLocales = #{I18n.t("js").to_json}; CKEDITOR.config.language = '#{I18n.locale}'" end |