diff --git a/app/controllers/asia_databases_controller.rb b/app/controllers/asia_databases_controller.rb index 07a0038..6c00075 100644 --- a/app/controllers/asia_databases_controller.rb +++ b/app/controllers/asia_databases_controller.rb @@ -1,5 +1,5 @@ class AsiaDatabasesController < ApplicationController - include Admin::AsiaTeachersHelper + include Admin::AsiaDatabasesHelper ExtraFields = { 'discipline_expertise'=> ['discipline_expertise'], 'project'=> ['project_name', 'start_date', 'sponsor'], diff --git a/app/views/admin/asia_databases/asia_teachers.html.erb b/app/views/admin/asia_databases/asia_teachers.html.erb index c203568..fa9956c 100644 --- a/app/views/admin/asia_databases/asia_teachers.html.erb +++ b/app/views/admin/asia_databases/asia_teachers.html.erb @@ -1,3 +1,8 @@ +
<%= teacher.teacher %> |
- <%= teacher.discipline_expertise %> | +<%= teacher.discipline_expertise.join("\n") rescue nil %> | <%= teacher.asia_projects.count %> | <%= teacher.asia_papers.count %> | <%= teacher.asia_patents.count %> |