Added pagination to forums
This commit is contained in:
@@ -4,6 +4,10 @@ class ForumsController < ApplicationController
|
||||
|
||||
before_filter :check_for_cancel
|
||||
|
||||
def show
|
||||
@topics = @forum.topics.page(params[:page]).per(10)
|
||||
end
|
||||
|
||||
def create
|
||||
if @forum.save
|
||||
flash[:notice] = "Forum was successfully created."
|
||||
|
||||
Reference in New Issue
Block a user