Class: Alchemy::Admin::LanguagesController

Inherits:
ResourcesController show all
Defined in:
app/controllers/alchemy/admin/languages_controller.rb

Instance Method Summary collapse

Methods inherited from ResourcesController

#create, #destroy, #edit, #index, #resource_handler, #show, #update

Methods included from ResourcesHelper

#contains_relations?, #edit_resource_path, #new_resource_path, #render_attribute, #resource_attribute_field_options, #resource_instance_variable, #resource_model, #resource_name, #resource_path, #resource_relations_names, #resource_scope, #resource_url_proxy, #resource_window_size, #resources_header, #resources_instance_variable, #resources_path, #sortable_resource_header_column

Methods inherited from BaseController

#leave

Methods included from Modules

included, #module_definition_for, register_module

Methods included from ConfigurationMethods

#configuration, #multi_language?, #multi_site?

Instance Method Details

#newObject



5
6
7
8
# File 'app/controllers/alchemy/admin/languages_controller.rb', line 5

def new
  @language = Language.new
  @language.page_layout = configured_page_layout || @language.page_layout
end