I’m racking my brain with this and I know there’s an easy way to do
this.
I have a Model.find result array. I need to check to see if a value
exists in that array result. Array.include? always returns false I
assume cause its an array of objects. So how do I search the resulting
array??
I’m racking my brain with this and I know there’s an easy way to do
this.
I have a Model.find result array. I need to check to see if a value
exists in that array result. Array.include? always returns false I
assume cause its an array of objects. So how do I search the resulting
array??
Why do you need to? Normally you should let the DB do things like this.