Sha256: 8e3d75f47afd29170e9b37572ca293d8b468b3e2f9e54e06adc241da484065af

Contents?: true

Size: 190 Bytes

Versions: 3

Compression:

Stored size: 190 Bytes

Contents

# frozen_string_literal: true

class SitemapsController < ApplicationController
  def show
    file = Zlib::GzipReader.new(open('public/sitemap.xml.gz'))
    render xml: file.read
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
seo_optimizer-0.1.2 lib/generators/seo_optimizer/robots_files/templates/sitemaps_controller_template.erb
seo_optimizer-0.1.1 lib/generators/seo_optimizer/robots_files/templates/sitemaps_controller_template.erb
seo_optimizer-0.1.0 lib/generators/seo_optimizer/robots_files/templates/sitemaps_controller_template.erb