Remove Projects#team action
Uses TeamMembers#index instead, to be more RESTful
This commit is contained in:
parent
8cfb197dfc
commit
95bd93fe1a
11 changed files with 13 additions and 20 deletions
|
@ -22,7 +22,7 @@ class TeamMembersController < ApplicationController
|
|||
params[:project_access]
|
||||
)
|
||||
|
||||
redirect_to team_project_path(@project)
|
||||
redirect_to project_team_index_path(@project)
|
||||
end
|
||||
|
||||
def update
|
||||
|
@ -32,7 +32,7 @@ class TeamMembersController < ApplicationController
|
|||
unless @team_member.valid?
|
||||
flash[:alert] = "User should have at least one role"
|
||||
end
|
||||
redirect_to team_project_path(@project)
|
||||
redirect_to project_team_index_path(@project)
|
||||
end
|
||||
|
||||
def destroy
|
||||
|
@ -40,7 +40,7 @@ class TeamMembersController < ApplicationController
|
|||
@team_member.destroy
|
||||
|
||||
respond_to do |format|
|
||||
format.html { redirect_to team_project_path(@project) }
|
||||
format.html { redirect_to project_team_index_path(@project) }
|
||||
format.js { render nothing: true }
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue