Skip to content

Commit

Permalink
Use the student_id param instead of id for student_teams#edit
Browse files Browse the repository at this point in the history
  • Loading branch information
akofink committed Mar 31, 2014
1 parent e5e303d commit 3f50873
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/student_team_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def view
end

def create
@student = AssignmentParticipant.find(params[:id])
@student = AssignmentParticipant.find(params[:student_id])
return unless current_user_id?(@student.user_id)

check = AssignmentTeam.where( ["name =? and parent_id =?", params[:team][:name], @student.parent_id])
Expand Down

0 comments on commit 3f50873

Please sign in to comment.