changes route for tag view so you can use tags that contain dots. Fixes #655

git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@734 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
lrbalt 2008-03-11 20:19:53 +00:00
parent 82dc26f38c
commit 9f84987558

View file

@ -36,7 +36,12 @@ ActionController::Routing::Routes.draw do |map|
todos.tickler 'tickler', :action => "list_deferred"
todos.done 'done', :action => "completed"
todos.done_archive 'done/archive', :action => "completed_archive"
todos.tag 'todos/tag/:name', :action => "tag"
# This route works for tags with dots like /todos/tag/version1.5
# please note that this pattern consumes everything after /todos/tag
# so /todos/tag/version1.5.xml will result in :name => 'version1.5.xml'
todos.tag 'todos/tag/:name', :action => "tag", :name => /.*/
todos.mobile 'mobile', :action => "index", :format => 'm'
todos.mobile_abbrev 'm', :action => "index", :format => 'm'
todos.mobile_abbrev_new 'm/new', :action => "new", :format => 'm'