Class: Alchemy::Admin::LegacyPageUrlsController
- Inherits:
-
ResourcesController
- Object
- ApplicationController
- BaseController
- BaseController
- ResourcesController
- Alchemy::Admin::LegacyPageUrlsController
- Defined in:
- app/controllers/alchemy/admin/legacy_page_urls_controller.rb
Instance Method Summary collapse
Methods inherited from ResourcesController
#edit, #index, #resource_handler, #show
Methods included from ResourcesHelper
#contains_relations?, #current_location_params, #edit_resource_path, #new_resource_path, #render_attribute, #render_resources, #resource_attribute_field_options, #resource_filter_select, #resource_has_filters, #resource_has_tags, #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
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
9 10 11 12 |
# File 'app/controllers/alchemy/admin/legacy_page_urls_controller.rb', line 9 def create @legacy_page_url = @page.legacy_urls.build(legacy_page_url_params) @legacy_page_url.save end |
#destroy ⇒ Object
23 24 25 26 |
# File 'app/controllers/alchemy/admin/legacy_page_urls_controller.rb', line 23 def destroy @legacy_page_url = LegacyPageUrl.find(params[:id]) @legacy_page_url.destroy end |
#new ⇒ Object
5 6 7 |
# File 'app/controllers/alchemy/admin/legacy_page_urls_controller.rb', line 5 def new @legacy_page_url = @page.legacy_urls.build end |
#update ⇒ Object
14 15 16 17 18 19 20 21 |
# File 'app/controllers/alchemy/admin/legacy_page_urls_controller.rb', line 14 def update @legacy_page_url = LegacyPageUrl.find(params[:id]) if @legacy_page_url.update(legacy_page_url_params) render :update else render :edit end end |