Sha256: 2e83d601e551d9217c12ac473602b2df699d34be247e3313477366453f316963

Contents?: true

Size: 403 Bytes

Versions: 22

Compression:

Stored size: 403 Bytes

Contents

# Renders a search engine optimized sitemap.xml
# Enable via <tt>RailsConnector::Configuration.enable(:seo_sitemap)</tt>
# @api public
class SeoSitemapController < ApplicationController
  layout nil

  # Finds all objects which are to be shown in the SEO sitemap. Responds to xml only.
  # @api public
  def show
    @objects = Obj.find_all_for_sitemap
    respond_to { |format| format.xml }
  end

end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
infopark_rails_connector-6.8.0.328.4a753fc app/controllers/seo_sitemap_controller.rb
infopark_rails_connector-6.8.0.322.c003f11 app/controllers/seo_sitemap_controller.rb