# Ruby מצא מערך של מזהי משתמשים

**URL:** <https://meta.discourse.org/t/ruby-find-array-of-users-id/259469>\
**Category:** Development\
**Created:** [26 במרץ,‏ 2023,‏ 6:58pm UTC](https://meta.discourse.org/t/ruby-find-array-of-users-id/259469 "2023-03-26T18:58:02Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [26 במרץ,‏ 2023,‏ 7:58pm UTC](https://meta.discourse.org/t/ruby-find-array-of-users-id/259469/2 "2023-03-26T19:58:13Z")

</div>

This might do it.

`User.all.update_all(password: 'not a good idea')`

You can impersonate users. So maybe you don’t need do do this?

Or you can Google “ruby loop array” for an example of how loops work.

And you can do `User.find(id)` and save a few keystrokes.

---

_[View the full topic](https://meta.discourse.org/t/ruby-find-array-of-users-id/259469)._
