Sha256: 9d8e69b79ad50b870f6b4991338fd0a0df535043788531afd7043262f1fde7ef

Contents?: true

Size: 684 Bytes

Versions: 1

Compression:

Stored size: 684 Bytes

Contents

xml.instruct!
 
xml.urlset "xmlns" => "http://www.sitemaps.org/schemas/sitemap/0.9" do
# homepage
    xml.url do
      xml.loc         root_path(:only_path => false)
      xml.lastmod     File.new("#{Rails.root.to_s}/app/views/nodes/home.html.erb").mtime.strftime("%Y-%m-%dT%H:%M:%S") #w3c formatted string (#todo - add timezone)
      xml.changefreq  "daily"
      xml.priority    1
    end

# nodes
  @nodes.each do |node|
    xml.url do
      xml.loc         node_path(node,:only_path => false)
      xml.lastmod     node.updated_at.strftime("%Y-%m-%dT%H:%M:%S") #w3c formatted string (#todo - add timezone)
      xml.changefreq  "daily"
      xml.priority    1
    end
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
noodall-ui-0.3.14 app/views/noodall/nodes/sitemap.xml.rxml