Added pagination to topic#show
This commit is contained in:
1 parent
38483a9ba7
commit
1d439f2c45
4 files changed
+16
-1
No files matched your search
@@ -5,6 +5,9 @@ class TopicsController < ApplicationController
|
||||
def show
|
||||
@topic.hit! if @topic
|
||||
|
||||
@posts = @topic.posts.page(params[:page]).per(10)
|
||||
#Kaminari.paginate_array(@topic).page(params[:page]).per(10)
|
||||
|
||||
@my_blockquote = {
|
||||
'Quote' => [
|
||||
/\[quote(:.*)?=(.*?)\](.*?)\[\/quote\1?\]/mi,
|
||||
|
||||
Reference in new issue
Block a user