Sha256: 6c6422cd6bb6e7bb76b36b7c8c027086300ad67a282f4a5adf7d2b5f444dbc16

Contents?: true

Size: 284 Bytes

Versions: 31

Compression:

Stored size: 284 Bytes

Contents

require_dependency "smithy/base_controller"

module Smithy
  class SitemapController < BaseController
    respond_to :xml
    skip_before_filter :authenticate_smithy_admin

    def show
      @pages = Smithy::Page.root.self_and_descendants
      respond_with @pages
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
smithycms-0.8.1 app/controllers/smithy/sitemap_controller.rb
smithycms-0.7.3 app/controllers/smithy/sitemap_controller.rb
smithycms-0.7.2 app/controllers/smithy/sitemap_controller.rb
smithycms-0.7.1 app/controllers/smithy/sitemap_controller.rb
smithycms-0.7.0 app/controllers/smithy/sitemap_controller.rb
smithycms-0.6.10 app/controllers/smithy/sitemap_controller.rb
smithycms-0.5.99.3 app/controllers/smithy/sitemap_controller.rb
smithycms-0.6.9 app/controllers/smithy/sitemap_controller.rb
smithycms-0.6.7 app/controllers/smithy/sitemap_controller.rb
smithycms-0.6.6 app/controllers/smithy/sitemap_controller.rb
smithycms-0.6.5 app/controllers/smithy/sitemap_controller.rb
smithycms-0.6.4 app/controllers/smithy/sitemap_controller.rb
smithycms-0.6.3 app/controllers/smithy/sitemap_controller.rb
smithycms-0.5.99.2 app/controllers/smithy/sitemap_controller.rb
smithycms-0.5.99.1 app/controllers/smithy/sitemap_controller.rb
smithycms-0.5.99 app/controllers/smithy/sitemap_controller.rb
smithycms-0.6.2 app/controllers/smithy/sitemap_controller.rb
smithycms-0.6.1 app/controllers/smithy/sitemap_controller.rb
smithycms-0.5.2 app/controllers/smithy/sitemap_controller.rb
smithycms-0.6.0 app/controllers/smithy/sitemap_controller.rb