Skip to content

Commit

Permalink
[fix] pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
anamariasosam committed Jun 22, 2016
1 parent 900a833 commit 132a132
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions app/assets/stylesheets/components/catalog/_catalog.scss
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,6 @@
}

}
.pagination {
display: block !important;
}
2 changes: 1 addition & 1 deletion app/controllers/users_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class UsersController < ApplicationController

def show
@user = User.find(params[:id])
@products = @user.products.page(params[:page]).per(4).order('created_at DESC')
@products = @user.products.page(params[:page]).per(6).order('created_at DESC')
end

def dashboard
Expand Down

0 comments on commit 132a132

Please sign in to comment.