From c9a27c0ea50590ba96bf2461f12e955908c262a4 Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Wed, 18 Jun 2014 18:16:58 +0800 Subject: [PATCH] added pagination --- app/controllers/web_resources_controller.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/web_resources_controller.rb b/app/controllers/web_resources_controller.rb index c7c205d..5de5c3e 100644 --- a/app/controllers/web_resources_controller.rb +++ b/app/controllers/web_resources_controller.rb @@ -13,7 +13,8 @@ class WebResourcesController < ApplicationController "title" => link.title, "context" => link.context, "statuses" => statuses, - "link_to_show" => link.url + "link_to_show" => link.url, + "total_pages" => links.total_pages } end {