After noon,
Suppose I put together a random selection of users:
User.find (: all ,: limit => 10 ,: order => "rand ()")
Now from these results, I want to see if the user with ID 3 was included in the results, what would be the best way to find out?
I thought about Array.include? but it seems to me a dead end.
thanks
In JP
ruby-on-rails activerecord
FearMediocrity
source share