Class: Cms::CategoryTypesController

Inherits:
ContentBlockController show all
Defined in:
app/controllers/cms/category_types_controller.rb

Instance Method Summary collapse

Methods inherited from ContentBlockController

#bulk_update, #destroy, #edit, #index, #inline, #new, #new_button_path, #publish, #revert_to, #show_via_slug, #update, #version, #versions

Methods included from ContentRenderingSupport

#handle_access_denied_on_page, #handle_draft_not_found, #handle_not_found_on_page, #handle_server_error_on_page, #show_content_as_page

Methods inherited from BaseController

allow_guests_to

Methods inherited from ApplicationController

#no_browser_caching

Instance Method Details

#createObject



7
8
9
10
# File 'app/controllers/cms/category_types_controller.rb', line 7

def create
  params[:_redirect_to] = category_types_path
  super
end

#showObject



3
4
5
# File 'app/controllers/cms/category_types_controller.rb', line 3

def show
  redirect_to edit_category_type_path(id: params[:id])
end