Sha256: 40c6beaca4d90c18c0c395c4c53a7b42755418499f603b5e58c3488f369f402c
Contents?: true
Size: 428 Bytes
Versions: 12
Compression:
Stored size: 428 Bytes
Contents
xml.instruct! :xml, :version => '1.0', :encoding => 'UTF-8' # create the urlset xml.urlset :xmlns => 'http://www.sitemaps.org/schemas/sitemap/0.9' do @forms.each do |form| xml.url do if form.url_name == Spud::Inquiries.default_contact_form xml.loc contact_url() else xml.loc contact_url(:id => form.url_name) end xml.lastmod form.updated_at.strftime('%Y-%m-%d') end end end
Version data entries
12 entries across 12 versions & 2 rubygems