Update personal_journals_controller.rb
This commit is contained in:
parent
15c6cebd5e
commit
ebe9772a23
|
@ -83,7 +83,7 @@ class PersonalJournalsController < ApplicationController
|
|||
"total_pages" => journal_papers.total_pages,
|
||||
"choice" => {"choice_value" => choice_value ,"choice_show" => choice_show},
|
||||
"url" => "/"+params[:locale]+params[:url],
|
||||
"all" => JournalPaper.where(:is_hidden=>false).take(4).sort_by{ |tp| [-tp[:year].to_i,-tp[:publication_date].to_i] },
|
||||
"all" => JournalPaper.where(:is_hidden=>false).take(4).sort_by{ |tp| [-tp[:year].to_i,-tp[:publication_date].to_i] }[0].paper_title,
|
||||
"all_n" => JournalPaper.where(:is_hidden=>false).count
|
||||
}
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue