2014-10-15 16:40:46 -04:00
|
|
|
class UsersController < ApplicationController
|
|
|
|
def index
|
|
|
|
@users = User.all
|
|
|
|
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
|