diff options
author | Long Nguyen <long.polyglot@gmail.com> | 2016-05-08 11:29:51 +0300 |
---|---|---|
committer | Long Nguyen <long.polyglot@gmail.com> | 2016-05-08 11:29:51 +0300 |
commit | ff21f999ae705afee920ca6871f8fb151130f185 (patch) | |
tree | 2295998582a53ec714fff3fa0131ff98f29299bf /config | |
parent | ffda8a1a0eb273e62fcb0197f352400946571778 (diff) |
Fix routing error
Diffstat (limited to 'config')
-rw-r--r-- | config/routes.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb index 533c3b98e8e..299b0dd1acf 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -91,7 +91,7 @@ Rails.application.routes.draw do end end - get '/s/:username', to: redirect('/u/:username/snippets'), + get '/s/:username', to: redirect('/u/%{username}/snippets'), constraints: { username: /[a-zA-Z.0-9_\-]+(?<!\.atom)/ } # |