fix error for the site that don't have e_papers' index page

This commit is contained in:
chiu 2020-03-02 22:41:51 +08:00
parent 07b8de599d
commit b1663fd9b8
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ def initialize
# .with_tags(filters("tags"))
@criterias = search_data(@criterias,[:title]).page(params[:page]).per(10)
@url = "/" + I18n.locale.to_s + "/" +Page.where(:module => "e_paper").first.url + "?method=papers"
#@url = "/" + I18n.locale.to_s + "/" +Page.where(:module => "e_paper").first.url + "?method=papers"
render :partial => "index" if request.xhr?
end