Class: Cms::TagsController

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

Instance Method Summary collapse

Methods inherited from ContentBlockController

#create, #destroy, #edit, #new, #publish, #revert_to, #update, #usages, #version, #versions

Methods included from PageHelper

#able_to?, #cms_toolbar, #container, #container_has_block?, #current_page, #page_title, #render_breadcrumbs, #render_portlet

Methods included from PathHelper

#cms_connectable_path, #cms_index_path_for, #cms_index_url_for, #cms_new_path_for, #cms_new_url_for, #edit_cms_connectable_path

Methods included from ErrorHandling

#handle_access_denied, #handle_server_error, included

Instance Method Details

#indexObject



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

def index
  load_blocks
  respond_to do |format| 
    format.html { render "#{template_directory}/index" }
    format.js { render :inline => "var tags = #{@blocks.map{|e| e.name}.to_json}" }
  end
end

#showObject



9
10
11
# File 'app/controllers/cms/tags_controller.rb', line 9

def show
  redirect_to cms_tags_url
end