组织首页的加载更多动态重复加载

This commit is contained in:
cxt 2015-12-22 10:54:27 +08:00
parent 6f12ba883d
commit 1a042fd822
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ class OrganizationsController < ApplicationController
@org_activities = OrgActivity.where("container_type = 'Course' and org_act_type = 'Poll' and container_id in (#{course_ids.join(',')})").order('updated_at desc').page(params[:page] || 1).per(10)
end
end
@page = params[:page]
@page = params[:page] || 1
respond_to do |format|
format.html
format.js