Skip to content

Commit

Permalink
Issue #206 Added Documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
serag committed Apr 22, 2014
1 parent b27bc82 commit 4538284
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 2 deletions.
6 changes: 6 additions & 0 deletions tutor/app/controllers/lecturers_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
class LecturersController < ApplicationController
# [Profile - Story 5.8]
# Displays the profile of the lecturer chosen
# Parameters:
# id: the Lecturer's id
# Returns: none
# Author: Serag
def show
@lecturer = Lecturer.find(params[:id])
end
Expand Down
6 changes: 6 additions & 0 deletions tutor/app/controllers/students_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
class StudentsController < ApplicationController
# [Profile - Story 5.8]
# Displays the profile of the student chosen
# Parameters:
# id: the Student's id
# Returns: none
# Author: Serag
def show
@student = Student.find(params[:id])
end
Expand Down
6 changes: 6 additions & 0 deletions tutor/app/controllers/teaching_assistants_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
class TeachingAssistantsController < ApplicationController
# [Profile - Story 5.8]
# Displays the profile of the teaching assistant chosen
# Parameters:
# id: the Teaching Assistant's id
# Returns: none
# Author: Serag
def show
@teaching_assistant = TeachingAssistant.find(params[:id])
end
Expand Down
2 changes: 1 addition & 1 deletion tutor/app/views/students/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
</script>
<html>
<head>
<title>CoolSoft - Java tutor | <%= @student.id%>'s Profile</title>
<title> <%= @student.id%>'s Profile </title>
<body>
<h1> <%= @student.name%>'s Profile </h1>
<div class="tabs">
Expand Down
3 changes: 2 additions & 1 deletion tutor/config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,5 @@
# # Directs /admin/products/* to Admin::ProductsController
# # (app/controllers/admin/products_controller.rb)
# resources :products
# end
# end
end

0 comments on commit 4538284

Please sign in to comment.