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.
This commit is contained in:
Ævar Arnfjörð Bjarmason 2009-06-09 13:23:08 +00:00
parent 3578506797
commit ea93ad2f07

View 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.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'