Skip to content

Commit

Permalink
Issue #203 adding documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohab authored and Mohab committed Apr 23, 2014
1 parent b95c66d commit 90555e5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tutor/app/controllers/tracks_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ def create
end
end

# [Recommendatio to students - Story 5.7]
# returns a json object contains a Hash of classmates
# Parameters: none
# Returns: json
# Author: Mohab Ghanim
def show_classmates
problem = Problem.find_by_id(params[:id])
track = problem.track
Expand All @@ -93,6 +98,11 @@ def show_classmates
render json: students_receiving_recommendation
end

# [Recommendatio to students - Story 5.7]
# Inserts a record in recommendation table
# Parameters: none
# Returns: json
# Author: Mohab Ghanim
def insert_recommendation
problem_id = params[:p_id]
student_id = params[:s_id]
Expand Down

0 comments on commit 90555e5

Please sign in to comment.