From f0b877904703b9e22ffd4556a1872b0a20f55d36 Mon Sep 17 00:00:00 2001 From: Alfredo Sumaran Date: Tue, 1 Mar 2016 11:43:22 -0500 Subject: Make url and actions to be the same name --- config/routes.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'config') diff --git a/config/routes.rb b/config/routes.rb index e1448d231b5..52c532601b4 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -335,10 +335,10 @@ Rails.application.routes.draw do get 'u/:username/groups' => 'users#groups', as: :user_groups, constraints: { username: /.*/ } - get 'u/:username/projects' => 'users#user_projects', as: :user_projects, + get 'u/:username/projects' => 'users#projects', as: :user_projects, constraints: { username: /.*/ } - get 'u/:username/contributed_projects' => 'users#user_contributed_projects', as: :user_contributed_projects, + get 'u/:username/contributed' => 'users#contributed', as: :user_contributed_projects, constraints: { username: /.*/ } get '/u/:username' => 'users#show', as: :user, -- cgit v1.2.1