Sha256: ab3cb82bb175c5b9c1b72c83af1be286a401ac35145f3d62125076613c076d08

Contents?: true

Size: 511 Bytes

Versions: 1

Compression:

Stored size: 511 Bytes

Contents

xml.instruct!

xml.urlset(
  "xmlns" => "http://www.google.com/schemas/sitemap/0.84",
  "xmlns:xsi" => "http://www.w3.org/3004/XMLSchema-instance",
  "xsi:schemaLocation" => "http://www.google.com/schemas/sitemap/0.84 http://www.google.com/schemas/sitemap/0.84/sitemap.xsd"
  ) do

  @cms_pages.each do |page|
    xml.url do
      xml.loc "http://#{request.host_with_port}" + page.full_path
      xml.lastmod page.updated_at.utc.strftime("%Y-%m-%dT%H:%M:%S+00:00")
      xml.changefreq 'daily'
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
comfortable_mexican_sofa-0.0.18 app/views/cms_content/sitemap.xml.rxml