讨论区如图分页当前页为最后一页,点击下一页建议返回第一页

This commit is contained in:
cxt 2017-02-24 20:38:49 +08:00
parent 03b7f91ed8
commit a6bf791358
1 changed files with 1 additions and 1 deletions

View File

@ -199,7 +199,7 @@ class BoardsController < ApplicationController
end end
else else
respond_to do |format| respond_to do |format|
format.js format.js {render "show.js.erb"}
format.html { format.html {
if @project if @project
render :action => 'show', :layout => 'base_projects' render :action => 'show', :layout => 'base_projects'