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

16 lines
223 B
Ruby
Raw Permalink Normal View History

2014-10-15 16:40:46 -04:00
class UsersController < ApplicationController
def index
2014-11-14 22:07:41 -05:00
@users = User.all_except(current_user)
2014-10-15 16:40:46 -04:00
end
def show
2014-10-27 12:25:36 -04:00
@user = User.find(params[:id])
end
private
def user_params
params.permit(:id)
2014-10-15 16:40:46 -04:00
end
end