tap/app/controllers/users_controller.rb
2014-12-09 17:17:11 +01:00

10 lines
200 B
Ruby

class UsersController < ApplicationController
def show
@user = User.find(params[:id])
@orders = @user.orders.paginate(page: params[:page])
end
def index
@users = User.all
end
end