diff --git a/app/controllers/personal_labs_controller.rb b/app/controllers/personal_labs_controller.rb index 71e70de..4e7fd49 100644 --- a/app/controllers/personal_labs_controller.rb +++ b/app/controllers/personal_labs_controller.rb @@ -2,11 +2,13 @@ class PersonalLabsController < ApplicationController def index labs = Lab.where(:is_hidden=>false).order_by(:year=>'desc').page(OrbitHelper.params[:page_no]).per(OrbitHelper.page_data_count) lab_list = labs.collect do |lab| + member = lab.member_profile + path = OrbitHelper.url_to_plugin_show(member.to_param, 'member') rescue '#' { "year" => lab.year, "lab_title" => lab.lab_title, "location" => lab.location, - "member" => (lab.member_profile.name rescue ""), + "member" => "#{member.name}", "link_to_show" => OrbitHelper.url_to_show(lab.to_param) } end @@ -39,9 +41,10 @@ class PersonalLabsController < ApplicationController "extension_no", "url", "note", + #"owner", "file" ] {"plugin_datas"=>plugin.get_plugin_data(fields_to_show)} end -end \ No newline at end of file +end diff --git a/app/models/lab.rb b/app/models/lab.rb index d7b5db7..14d24dc 100644 --- a/app/models/lab.rb +++ b/app/models/lab.rb @@ -99,6 +99,9 @@ class Lab files << "