From 2c19ae8aeacef7961cdf5184abee7f20ebabf13c Mon Sep 17 00:00:00 2001 From: nilsding Date: Sat, 17 Jan 2015 16:29:11 +0100 Subject: [PATCH] finally get rid of that '@' in the URL --- config/routes.rb | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/config/routes.rb b/config/routes.rb index 6ad14e74..8920a3af 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -85,16 +85,16 @@ Rails.application.routes.draw do match '/inbox', to: 'inbox#show', via: 'get' match '/user/:username(/p/:page)', to: 'user#show', via: 'get', defaults: {page: 1} - match '/@:username(/p/:page)', to: 'user#show', via: 'get', as: :show_user_profile, defaults: {page: 1} - match '/@:username/a/:id', to: 'answer#show', via: 'get', as: :show_user_answer - match '/@:username/q/:id', to: 'question#show', via: 'get', as: :show_user_question - match '/@:username/followers(/p/:page)', to: 'user#followers', via: 'get', as: :show_user_followers, defaults: {page: 1} - match '/@:username/friends(/p/:page)', to: 'user#friends', via: 'get', as: :show_user_friends, defaults: {page: 1} - match '/@:username/groups(/p/:page)', to: 'user#groups', via: 'get', as: :show_user_groups, defaults: {page: 1} - match '/:username(/p/:page)', to: 'user#show', via: 'get', as: :show_user_profile_alt, defaults: {page: 1} - match '/:username/a/:id', to: 'answer#show', via: 'get', as: :show_user_answer_alt - match '/:username/q/:id', to: 'question#show', via: 'get', as: :show_user_question_alt - match '/:username/followers(/p/:page)', to: 'user#followers', via: 'get', as: :show_user_followers_alt, defaults: {page: 1} - match '/:username/friends(/p/:page)', to: 'user#friends', via: 'get', as: :show_user_friends_alt, defaults: {page: 1} + match '/@:username(/p/:page)', to: 'user#show', via: 'get', as: :show_user_profile_alt, defaults: {page: 1} + match '/@:username/a/:id', to: 'answer#show', via: 'get', as: :show_user_answer_alt + match '/@:username/q/:id', to: 'question#show', via: 'get', as: :show_user_question_alt + match '/@:username/followers(/p/:page)', to: 'user#followers', via: 'get', as: :show_user_followers_alt, defaults: {page: 1} + match '/@:username/friends(/p/:page)', to: 'user#friends', via: 'get', as: :show_user_friends_alt, defaults: {page: 1} + match '/:username(/p/:page)', to: 'user#show', via: 'get', as: :show_user_profile, defaults: {page: 1} + match '/:username/a/:id', to: 'answer#show', via: 'get', as: :show_user_answer + match '/:username/q/:id', to: 'question#show', via: 'get', as: :show_user_question + match '/:username/followers(/p/:page)', to: 'user#followers', via: 'get', as: :show_user_followers, defaults: {page: 1} + match '/:username/friends(/p/:page)', to: 'user#friends', via: 'get', as: :show_user_friends, defaults: {page: 1} + match '/:username/groups(/p/:page)', to: 'user#groups', via: 'get', as: :show_user_groups, defaults: {page: 1} match '/:username/questions(/p/:page)', to: 'user#questions', via: 'get', as: :show_user_questions, defaults: {page: 1} end