From: Ævar Arnfjörð Bjarmason Date: Tue, 9 Jun 2009 13:23:08 +0000 (+0000) Subject: Since both site.rhtml and site.rxml exists we have to add :format => X-Git-Tag: live~6815^2~21 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/ea93ad2f077de1be04a9087c7d20547395fdef9e 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. --- 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'