Class: Alchemy::Admin::LegacyPageUrlsController
Constant Summary
ResourceFilter::COMMON_SEARCH_FILTER_EXCLUDES
Instance Method Summary
collapse
#edit, #index, #resource_handler
#controller_path_array, #resource_array, #resource_model_name, #resource_name, #resources_name
#contains_relations?, #edit_resource_path, #new_resource_path, #render_attribute, #resource_attribute_field_options, #resource_has_tags, #resource_instance_variable, #resource_model, #resource_path, #resource_relations_names, #resource_scope, #resource_url_proxy, #resource_window_size, #resources_instance_variable, #resources_path
#leave
Instance Method Details
#create ⇒ Object
11
12
13
14
|
# File 'app/controllers/alchemy/admin/legacy_page_urls_controller.rb', line 11
def create
@legacy_page_url = @page.legacy_urls.create(legacy_page_url_params)
@message = message_for_resource_action
end
|
#destroy ⇒ Object
29
30
31
32
|
# File 'app/controllers/alchemy/admin/legacy_page_urls_controller.rb', line 29
def destroy
@page.legacy_urls.destroy(@legacy_page_url)
@message = message_for_resource_action
end
|
#new ⇒ Object
7
8
9
|
# File 'app/controllers/alchemy/admin/legacy_page_urls_controller.rb', line 7
def new
@legacy_page_url = @page.legacy_urls.build
end
|
#show ⇒ Object
16
17
|
# File 'app/controllers/alchemy/admin/legacy_page_urls_controller.rb', line 16
def show
end
|
#update ⇒ Object
19
20
21
22
23
24
25
26
27
|
# File 'app/controllers/alchemy/admin/legacy_page_urls_controller.rb', line 19
def update
@legacy_page_url = LegacyPageUrl.find(params[:id])
if @legacy_page_url.update(legacy_page_url_params)
@message = message_for_resource_action
render :update
else
render :edit, status: 422
end
end
|