Class: Alchemy::Admin::SitesController
- Inherits:
-
ResourcesController
- Object
- ApplicationController
- BaseController
- BaseController
- ResourcesController
- Alchemy::Admin::SitesController
- Defined in:
- app/controllers/alchemy/admin/sites_controller.rb
Constant Summary
Constants inherited from ResourcesController
ResourcesController::COMMON_SEARCH_FILTER_EXCLUDES
Instance Method Summary collapse
Methods inherited from ResourcesController
#edit, #index, #new, #resource_filters, #resource_filters_for_select, #resource_handler, #resource_has_deprecated_filters, #resource_has_filters, #show, #update
Methods included from ResourcesHelper
#contains_relations?, #edit_resource_path, #new_resource_path, #render_attribute, #resource_attribute_field_options, #resource_has_tags, #resource_instance_variable, #resource_model, #resource_name, #resource_path, #resource_relations_names, #resource_scope, #resource_url_proxy, #resource_window_size, #resources_instance_variable, #resources_path
Methods inherited from BaseController
Methods included from Modules
included, #module_definition_for, register_module
Methods included from Alchemy::AbilityHelper
Methods included from ConfigurationMethods
#configuration, #multi_language?, #multi_site?, #prefix_locale?
Instance Method Details
#create ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'app/controllers/alchemy/admin/sites_controller.rb', line 6 def create @site = Alchemy::Site.new(resource_params) if @site.save flash[:notice] = Alchemy.t("Please create a default language for this site.") do_redirect_to alchemy.admin_languages_path(site_id: @site) else render :new end end |