From 9b973dfcf541ff74b1bcd7ee135f477cc1d10286 Mon Sep 17 00:00:00 2001 From: serag Date: Mon, 21 Apr 2014 21:15:52 +0200 Subject: [PATCH] Issue #206 Modified Controllers and added primative views --- tutor/app/controllers/lecturers_controller.rb | 4 ++-- tutor/app/controllers/students_controller.rb | 4 ++-- tutor/app/controllers/teaching_assistants_controller.rb | 4 ++-- tutor/app/views/lecturers/show.html.erb | 2 +- tutor/app/views/students/show.html.erb | 2 +- tutor/app/views/teaching_assistants/show.html.erb | 2 +- tutor/config/routes.rb | 4 ++-- 7 files changed, 11 insertions(+), 11 deletions(-) diff --git a/tutor/app/controllers/lecturers_controller.rb b/tutor/app/controllers/lecturers_controller.rb index 096e7bdd..a64d7975 100644 --- a/tutor/app/controllers/lecturers_controller.rb +++ b/tutor/app/controllers/lecturers_controller.rb @@ -1,7 +1,7 @@ class LecturersController < ApplicationController - def index - end def show @lecturer = Lecturer.find(params[:id]) end + def index + end end \ No newline at end of file diff --git a/tutor/app/controllers/students_controller.rb b/tutor/app/controllers/students_controller.rb index bd7f3e35..84bf342d 100644 --- a/tutor/app/controllers/students_controller.rb +++ b/tutor/app/controllers/students_controller.rb @@ -1,7 +1,7 @@ class StudentsController < ApplicationController - def index - end def show @student = Student.find(params[:id]) end + def index + end end \ No newline at end of file diff --git a/tutor/app/controllers/teaching_assistants_controller.rb b/tutor/app/controllers/teaching_assistants_controller.rb index f07c2afe..10e2e7c9 100644 --- a/tutor/app/controllers/teaching_assistants_controller.rb +++ b/tutor/app/controllers/teaching_assistants_controller.rb @@ -1,7 +1,7 @@ class TeachingAssistantsController < ApplicationController - def index - end def show @teaching_assistant = TeachingAssistant.find(params[:id]) end + def index + end end \ No newline at end of file diff --git a/tutor/app/views/lecturers/show.html.erb b/tutor/app/views/lecturers/show.html.erb index b5386660..256accc2 100644 --- a/tutor/app/views/lecturers/show.html.erb +++ b/tutor/app/views/lecturers/show.html.erb @@ -1,7 +1,7 @@ - CoolSoft - Java Tutor + CoolSoft - Java Tutor | <%= @lecturer.id%>'s Profile

I am <%= @lecturer.email%>

diff --git a/tutor/app/views/students/show.html.erb b/tutor/app/views/students/show.html.erb index 298eccd4..5d06eaf6 100644 --- a/tutor/app/views/students/show.html.erb +++ b/tutor/app/views/students/show.html.erb @@ -1,7 +1,7 @@ - CoolSoft - Java Tutor + CoolSoft - Java tutor | <%= @student.id%>'s Profile

I am <%= @student.email%>

diff --git a/tutor/app/views/teaching_assistants/show.html.erb b/tutor/app/views/teaching_assistants/show.html.erb index c0cb5ab1..e87bb1db 100644 --- a/tutor/app/views/teaching_assistants/show.html.erb +++ b/tutor/app/views/teaching_assistants/show.html.erb @@ -1,7 +1,7 @@ - CoolSoft - Java Tutor + CoolSoft - Java Tutor | <%= @teaching_assistant.id%>'s Profile

I am <%= @teaching_assistant.email%>

diff --git a/tutor/config/routes.rb b/tutor/config/routes.rb index dd86ad5c..e6f43c82 100644 --- a/tutor/config/routes.rb +++ b/tutor/config/routes.rb @@ -28,9 +28,9 @@ resources :solutions resources :problems resources :topics - resources :students - resources :teaching_assistants resources :lecturers + resources :teaching_assistants + resources :students # Example resource route with options: # resources :products do