From e75e585f03df8518f7e07b878116fce45b7e2c10 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 19 Oct 2024 19:37:46 -0700 Subject: [PATCH] Routes are actually ensuring the id is always there --- app/controllers/accounts/users_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/accounts/users_controller.rb b/app/controllers/accounts/users_controller.rb index e3bdf4c54..3763b4c21 100644 --- a/app/controllers/accounts/users_controller.rb +++ b/app/controllers/accounts/users_controller.rb @@ -13,7 +13,7 @@ class Accounts::UsersController < ApplicationController private def set_user - @user = Current.account.users.active.find(params.expect(:id)) + @user = Current.account.users.active.find(params[:id]) end def ensure_permission_to_remove