Ruby on Rails
Monday, October 8, 2018
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
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/0676b89a-4880-485f-943e-f77a5d9b27c9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment