Skip to content

Commit

Permalink
restrict locale format
Browse files Browse the repository at this point in the history
  • Loading branch information
digitaltom committed Dec 20, 2012
1 parent 106815f commit 3f7b4f9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions config/routes.rb
Expand Up @@ -7,10 +7,10 @@
match 'main/download' => :download

match '121' => :release, :release => "121", :outdated => true
match '121/:locale' => :release, :release => "121", :outdated => true
match '121/:locale' => :release, :release => "121", :outdated => true, :constraints => { :locale => /[\w]+/ }
match ':release' => :release, :constraints => { :release => /[\d]+/ }, :format => false
match ':release/:locale' => :release, :constraints => { :release => /[\d]+/ }, :format => false
match 'developer/:locale' => :release, :release => "developer", :format => false
match ':release/:locale' => :release, :constraints => { :release => /[\d]+/, :locale => /[\w]+/ }, :format => false
match 'developer/:locale' => :release, :release => "developer", :format => false, :constraints => { :locale => /[\w]+/ }

match 'change_install' => :change_install

Expand Down

0 comments on commit 3f7b4f9

Please sign in to comment.