Update personal_journals_controller.rb

This commit is contained in:
chiu 2019-10-31 23:35:48 +08:00
parent d8ee2ec656
commit c99b57caed
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ class PersonalJournalsController < ApplicationController
when 'language'
t << { 'value' => (!journal_paper.language.nil? ? t(journal_paper.language.to_s) : '') }
when 'url'
t << { 'value' => ("<a href='#{journal_paper.url}'>#{journal_paper.url}</a>" rescue ''}
t << { 'value' => ("<a href='#{journal_paper.url}'>#{journal_paper.url}</a>" rescue '')}
else
t << { 'value' => (journal_paper.send(fs) rescue '') }
end