diff --git a/app/models/writing_conference.rb b/app/models/writing_conference.rb index 698f9cd..78d71c1 100644 --- a/app/models/writing_conference.rb +++ b/app/models/writing_conference.rb @@ -125,7 +125,7 @@ class WritingConference if !page.nil? && page.custom_string_field == "table" case t when "paper_title" - pd_data << { "data_title" => "#{p.paper_title}" } + pd_data << { "data_title" => "#{p.paper_title}" } when "paper_types" pd_data << {"data_title" => ( !p.conference_paper_types.blank? ? p.conference_paper_types.collect{|x| x.title}.join(', ') : "")} when "paper_levels" @@ -135,13 +135,13 @@ class WritingConference when "period" pd_data << {"data_title" => p.duration} when "url" - pd_data << { "data_title" => "#{p.url}" } + pd_data << { "data_title" => "#{p.url}" } else pd_data << { "data_title" => p.send(t) } end else if t == "paper_title" - pd_data << { "data_title" => "#{p.create_link}" } + pd_data << { "data_title" => "#{p.create_link}" } else pd_data << { "data_title" => p.send(t) } end @@ -193,7 +193,7 @@ class WritingConference self.writing_conference_files.each do |conference_files| url = conference_files.file.url title = ((conference_files.title.blank? ? File.basename(conference_files.file.path) : conference_files.title) rescue "") - files << (url.nil? ? "" : "
  • #{title}
  • ") + files << (url.nil? ? "" : "
  • #{title}
  • ") end value = files.join("") when "url"