Skip to content

Commit

Permalink
Issue #206 added html.erb files and controllers.rb files
Browse files Browse the repository at this point in the history
  • Loading branch information
serag committed Apr 20, 2014
1 parent 37221f7 commit b4382d6
Show file tree
Hide file tree
Showing 8 changed files with 50 additions and 1 deletion.
7 changes: 7 additions & 0 deletions tutor/app/controllers/lecturer_controller.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
class LecturerController < ApplicationController
def show
@lecturer = Lecturer.find(params[:id])
end
def new
end
end
7 changes: 7 additions & 0 deletions tutor/app/controllers/students_controller.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
class StudentController < ApplicationController
def show
@student = Student.find(params[:id])
end
def new
end
end
7 changes: 7 additions & 0 deletions tutor/app/controllers/teaching_assistant_controller.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
class Teaching_assistantController < ApplicationController
def show
@teaching_assistant = teaching_assistant.find(params[:id])
end
def new
end
end
8 changes: 8 additions & 0 deletions tutor/app/views/lecturers/show.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<<!DOCTYPE html>
<html>
<head>
<title> Hello I'm a Lecturer </title>
</head>
<body>
</body>
</html>
8 changes: 8 additions & 0 deletions tutor/app/views/students/show.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<<!DOCTYPE html>
<html>
<head>
<title> Hello I'm a Student </title>
</head>
<body>
</body>
</html>
9 changes: 9 additions & 0 deletions tutor/app/views/teaching_assistants/show.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<<!DOCTYPE html>
<html>
<head>
<title> Hello I am a TA </title>
</head>
<body>

</body>
</html>
5 changes: 4 additions & 1 deletion tutor/config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@
resources :solutions
resources :problems
resources :topics

resources :students
resources :teaching_assistants
resources :lecturers

# Example resource route with options:
# resources :products do
# member do
Expand Down
Binary file modified tutor/db/development.sqlite3
Binary file not shown.

0 comments on commit b4382d6

Please sign in to comment.