I want to create a rails request as shown below. And I would like to know how I can do it again on my own.
Pseudocode:
@usersprojects = ?? Do I have notes or just objects here? not sure?
SELECT * FROM audit_log WHERE project_id IN (@usersprojects)
In where does IN () do some, how to tell Rails to use record.id?
Thank you so much for your help in this. I want Rails!
source
share