Skip to content
This repository has been archived by the owner on Dec 12, 2021. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
showing 5 games per column instead of 4
  • Loading branch information
ryanb committed Dec 17, 2010
1 parent a8c94a9 commit 5e82727
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/controllers/games_controller.rb
Expand Up @@ -4,8 +4,8 @@ class GamesController < ApplicationController

def index
@users = User.where("publicized_at is not null").order("publicized_at desc").limit(7)
@other_games = @other_games.paginate(:page => 1, :per_page => 4)
@your_games = @your_games.paginate(:page => 1, :per_page => 4) if @your_games
@other_games = @other_games.paginate(:page => 1, :per_page => 5)
@your_games = @your_games.paginate(:page => 1, :per_page => 5) if @your_games
end

def show
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/users_controller.rb
Expand Up @@ -3,7 +3,7 @@ class UsersController < ApplicationController

def show
@user = User.where(:guest => false).find(params[:id])
@games = @user.games.recent.paginate(:per_page => 4, :page => params[:page])
@games = @user.games.recent.paginate(:per_page => 5, :page => params[:page])
end

def new
Expand Down

0 comments on commit 5e82727

Please sign in to comment.