From c8bf5905bf92d2da7d408eee6364dc6e99a17b02 Mon Sep 17 00:00:00 2001 From: Andrey Kumanyaev <me@zzet.org> Date: Wed, 26 Dec 2012 20:31:18 +0400 Subject: [PATCH] Fix form url and routes path --- app/views/groups/_new_group_member.html.haml | 2 +- config/routes.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/groups/_new_group_member.html.haml b/app/views/groups/_new_group_member.html.haml index b4fc07d2ae9..75023057512 100644 --- a/app/views/groups/_new_group_member.html.haml +++ b/app/views/groups/_new_group_member.html.haml @@ -1,4 +1,4 @@ -= form_for @team_member, as: :team_member, url: team_members_group_path(@group, @team_member) do |f| += form_for @team_member, as: :team_member, url: team_members_group_path(@group) do |f| %fieldset %legend= "New Team member(s) for projects in #{@group.name}" diff --git a/config/routes.rb b/config/routes.rb index 90ae2514e63..4a02bd9f809 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -103,7 +103,7 @@ Gitlab::Application.routes.draw do get :merge_requests get :search get :people - put :team_members + post :team_members end end -- 2.30.9