From caee873bbb375fde64352e5284074c2743214cc8 Mon Sep 17 00:00:00 2001 From: Jisu Park Date: Mon, 10 Aug 2015 15:05:50 +0900 Subject: [PATCH] Change /robots.txt routes to avoid template missing error --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3be975c..4c9e32e 100644 --- a/README.md +++ b/README.md @@ -205,7 +205,7 @@ In `config/routes.rb`: ```ruby get "sitemap.xml" => "home#sitemap", format: :xml, as: :sitemap -get "robots.txt" => "home#robots", format: :text, as: :robots +get "robots.:format" => "home#robots", format: :text, as: :robots ``` #### Controller