default paginattion

This commit is contained in:
Timothy N. Tsvetkov 2011-04-28 11:33:03 +04:00
parent ec0186a489
commit 5a03f4b01f
2 changed files with 3 additions and 1 deletions

View File

@ -4,7 +4,7 @@ class RepositoriesController < ApplicationController
before_filter :find_repository, :only => [:show, :destroy]
def show
@projects = @repository.projects.recent
@projects = @repository.projects.recent.paginate :page => params[:page], :per_page => 30
end
def new

View File

@ -47,4 +47,6 @@
.actions-bar.wat-cf
.actions
= will_paginate @projects
- content_for :sidebar, render(:partial => 'sidebar')