课程讨论区的加载更多
This commit is contained in:
parent
63f9601c15
commit
108448cf4d
|
@ -153,6 +153,7 @@ class BoardsController < ApplicationController
|
|||
end
|
||||
end
|
||||
|
||||
@page = params[:page] ? params[:page].to_i + 1 : 0
|
||||
@message = Message.new(:board => @board)
|
||||
#modify by nwb
|
||||
respond_to do |format|
|
||||
|
|
|
@ -31,4 +31,5 @@
|
|||
<%= render :partial => 'course_new', :locals => {:f => f, :topic => @message, :edit_mode => false, :course => @board.course} %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<%= render :partial=> 'course_show_detail',:locals =>{:topics => @topics, :page => 0} %></div>
|
||||
<%= render :partial=> 'course_show_detail',:locals =>{:topics => @topics, :page => 0} %>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue