parent
12d438223d
commit
492c0585b4
|
@ -46,11 +46,7 @@ class PersonalConferencesController < ApplicationController
|
||||||
else
|
else
|
||||||
writing_conferences_show = writing_conferences_temp.select { |value| search_all_words(value.send(params[:selectbox]).to_s, params[:keywords]) }
|
writing_conferences_show = writing_conferences_temp.select { |value| search_all_words(value.send(params[:selectbox]).to_s, params[:keywords]) }
|
||||||
end
|
end
|
||||||
page_to_show = if params[:page_no].nil?
|
page_to_show = params[:page_no].nil? ? 1 : params[:page_no].to_i
|
||||||
1
|
|
||||||
else
|
|
||||||
params[:page_no].to_i
|
|
||||||
end
|
|
||||||
writing_conferences = writing_conferences_show[(page_to_show - 1) * page_data_count...page_to_show * page_data_count]
|
writing_conferences = writing_conferences_show[(page_to_show - 1) * page_data_count...page_to_show * page_data_count]
|
||||||
writing_conferences_total_pages = (writing_conferences_show.length / page_data_count.to_f).ceil
|
writing_conferences_total_pages = (writing_conferences_show.length / page_data_count.to_f).ceil
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue