From 29ed4627754f4f462828aca5b7bf9dc1035cb6df Mon Sep 17 00:00:00 2001 From: Ciro Santilli Date: Tue, 7 Oct 2014 18:54:38 +0200 Subject: [PATCH] Replace match via get with get on routes --- config/routes.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/routes.rb b/config/routes.rb index 1d571e21b881..abd400af1d53 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -143,8 +143,8 @@ end end - match "/u/:username" => "users#show", as: :user, - constraints: {username: /(?:[^.]|\.(?!atom$))+/, format: /atom/}, via: :get + get '/u/:username' => 'users#show', as: :user, + constraints: { username: /(?:[^.]|\.(?!atom$))+/, format: /atom/ } # # Dashboard Area