Class: Cms::TagsController

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

Instance Method Summary collapse

Methods inherited from ContentBlockController

#bulk_update, #create, #destroy, #edit, #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

#indexObject



3
4
5
6
7
8
9
# File 'app/controllers/cms/tags_controller.rb', line 3

def index
  load_blocks
  respond_to do |format|
    format.html
    format.json { render :inline => @blocks.map { |e| e.name }.to_json }
  end
end

#showObject



11
12
13
# File 'app/controllers/cms/tags_controller.rb', line 11

def show
  redirect_to tags_path
end