Commit 719298c8

mo khan <mo@mokhan.ca>
2014-10-19 04:11:48
use base class paginatable.
1 parent 1b90faf
Changed files (1)
app
app/controllers/profiles_controller.rb
@@ -5,7 +5,7 @@ class ProfilesController < ApplicationController
   end
 
   def index
-    @profiles = repository.search_with(params).page(params[:page]).per(12)
+    @profiles = repository.search_with(params).page(page).per(per_page)
   end
 
   def show