From 54986abac899ff71a01cbc6f008db1645a729e8a Mon Sep 17 00:00:00 2001 From: Ricky Barrette Date: Thu, 24 Jan 2013 13:17:07 -0500 Subject: [PATCH] Fixed topic pagination contol location --- app/controllers/topics_controller.rb | 1 - app/views/topics/show.html.erb | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/app/controllers/topics_controller.rb b/app/controllers/topics_controller.rb index 12afe73..14c43c3 100755 --- a/app/controllers/topics_controller.rb +++ b/app/controllers/topics_controller.rb @@ -8,7 +8,6 @@ class TopicsController < ApplicationController @topic.hit! if @topic @posts = @topic.posts.page(params[:page]).per(10) - #Kaminari.paginate_array(@topic).page(params[:page]).per(10) @my_blockquote = { 'Quote' => [ diff --git a/app/views/topics/show.html.erb b/app/views/topics/show.html.erb index d76a792..4fe454c 100755 --- a/app/views/topics/show.html.erb +++ b/app/views/topics/show.html.erb @@ -41,9 +41,9 @@ <%end%> <% end %> -
- <%= paginate(@posts)%> -
+
+ <%= paginate(@posts)%> +

<%= link_to "Back to Forum", forum_path(@topic.forum) %>