# .find() with contents of Array

**URL:** <https://www.ruby-forum.com/t/find-with-contents-of-array/183194>\
**Category:** Rails\
**Created:** [February 9, 2010, 9:04pm UTC](https://www.ruby-forum.com/t/find-with-contents-of-array/183194 "2010-02-09T21:04:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jmaenpaa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/9de053/32.png) [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Post date:** [February 9, 2010, 9:04pm UTC](https://www.ruby-forum.com/t/find-with-contents-of-array/183194/1 "2010-02-09T21:04:14Z")

</div>

Hello all,  
I’m on my 4th month with Ruby on Rails. I’m doing good, I think, but  
have a long way to go.

I have an array with several IDs.

Array  
[1,4,6,10,40]

I wish to perform a find() on a Model, on each of these IDs, then be  
able to send the results to a view.

Thank you for any help on this.

JohnM

---

<div class="post-metadata">

**Author:** ![jmaenpaa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/9de053/32.png) [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Post date:** [February 9, 2010, 9:14pm UTC](https://www.ruby-forum.com/t/find-with-contents-of-array/183194/2 "2010-02-09T21:14:50Z")

</div>

Well,  
I found out that I just do this…

m = Array

Model.find(m)

That gives me my results.

Thanks,

John
