From 271b7d160b86c7f49c5daa762da03690208c7509 Mon Sep 17 00:00:00 2001 From: Gustavo Cunha Date: Mon, 27 Oct 2014 09:02:32 -0300 Subject: [PATCH] Add sitemap --- app/views/home/index.xml.erb | 7 +++++++ config/routes.rb | 1 + 2 files changed, 8 insertions(+) create mode 100644 app/views/home/index.xml.erb diff --git a/app/views/home/index.xml.erb b/app/views/home/index.xml.erb new file mode 100644 index 00000000..50766f8d --- /dev/null +++ b/app/views/home/index.xml.erb @@ -0,0 +1,7 @@ + + + + <%= root_url %> + daily + + diff --git a/config/routes.rb b/config/routes.rb index ed862142..e576e33e 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,3 +1,4 @@ Rails.application.routes.draw do root to: 'home#index' + get 'sitemap', to: "home#index", defaults: { format: :xml } end