Hello, if I have the following:
@projects = Permission.where(["user_id >= ?", 21])
Results In:
[#<Permission id: 59, project_id: 13, user_id: 21>, #<Permission id: 59, project_id: 13, user_id: 21>]
I then what to use those project_id 's to QUERY as follows:
AuditLog.where({ :project_id => @projects }).limit(10)
But this errors?
NoMethodError: undefined method `project_id' for [#<Permission id: 59, project_id: 13, user_id: 21>]:ActiveRecord::Relation
Ideas? thank you