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