From ea93ad2f077de1be04a9087c7d20547395fdef9e Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Tue, 9 Jun 2009 13:23:08 +0000 Subject: [PATCH] Since both site.rhtml and site.rxml exists we have to add :format => 'rhtml' to the root controller so that the index isn't broken. RSS feeds also work without XHTML being added to them now. --- config/routes.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/routes.rb b/config/routes.rb index 68f1ad6d2..721cb5e11 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -86,7 +86,7 @@ ActionController::Routing::Routes.draw do |map| map.connect '/browse/changesets/rss', :controller => 'changeset', :action => 'list', :format => 'rxml' # web site - map.root :controller => 'site', :action => 'index' + map.root :controller => 'site', :action => 'index', :format => 'rhtml' map.connect '/', :controller => 'site', :action => 'index' map.connect '/edit', :controller => 'site', :action => 'edit' map.connect '/history', :controller => 'changeset', :action => 'list', :format => 'rhtml' -- 2.39.5