generating sitemaps how do i make xml.url and xml.loc return https instead of http

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

generating sitemaps how do i make xml.url and xml.loc return https instead of http

fugee ohu
   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 [hidden email].
To post to this group, send email to [hidden email].
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.