base_url = “https://#{request.host_with_port}/”
xml.url do
xml.loc base_url
xml.changefreq “monthly”
xml.priority 0.3
end
@people.each do |person|
xml.url do
xml.loc base_url+'person_url(person)
xml.lastmod person.updated_at.to_date.to_s(:db)
xml.changefreq “monthly”
xml.priority 0.3
end
end