mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-04 16:28:50 +01:00
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:
parent
82dc26f38c
commit
9f84987558
1 changed files with 6 additions and 1 deletions
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue