]> git.openstreetmap.org Git - rails.git/commitdiff
Since both site.rhtml and site.rxml exists we have to add :format =>
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Tue, 9 Jun 2009 13:23:08 +0000 (13:23 +0000)
committerÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Tue, 9 Jun 2009 13:23:08 +0000 (13:23 +0000)
'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

index 68f1ad6d25b57d9ac9d67a1c6ff5fda2451bc2ac..721cb5e11b0d4291b4773ffefd6eafe4e04b111d 100644 (file)
@@ -86,7 +86,7 @@ ActionController::Routing::Routes.draw do |map|
   map.connect '/browse/changesets/rss', :controller => 'changeset', :action => 'list', :format => 'rxml'
   
   # web site
   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'
   map.connect '/', :controller => 'site', :action => 'index'
   map.connect '/edit', :controller => 'site', :action => 'edit'
   map.connect '/history', :controller => 'changeset', :action => 'list', :format => 'rhtml'