You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> Issue.where(["project IN (?)",current_user.projects])
>> *** TypeErrorException: can'tconvertArrayintoHash
Model associations
user has_many projects
project has_many issues
My goal is to get all issues related to an user through his projects. I tried using 'OR' condition but again, it was unsuccessful as the where needs only hash.
Can you guide me to to achieve the goal using minimum API calls?
The text was updated successfully, but these errors were encountered:
Model associations
My goal is to get all
issues
related to anuser
through hisprojects
. I tried using 'OR' condition but again, it was unsuccessful as thewhere
needs only hash.Can you guide me to to achieve the goal using minimum API calls?
The text was updated successfully, but these errors were encountered: