4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
# File 'app/controllers/welcome_controller.rb', line 4
def index
@rss_feeds = RssFeed.all
if (current_person.nil?)
@registered_for_these_courses_during_current_semester = []
@teaching_these_courses_during_current_semester = []
else
@registered_for_these_courses_during_current_semester = current_person.registered_for_these_courses_during_current_semester
@teaching_these_courses_during_current_semester = current_person.teaching_these_courses_during_current_semester
end
respond_to do |format|
format.html format.xml { render :xml => @courses }
end
end
|