1
0
Fork 0
find-us-lunch/app/controllers/users_controller.rb

15 lines
223 B
Ruby

class UsersController < ApplicationController
def index
@users = User.all_except(current_user)
end
def show
@user = User.find(params[:id])
end
private
def user_params
params.permit(:id)
end
end