I am trying to find the emails (of all emails) to be equal to the @contact.primary email (so that i can display specific emails in my view)
if i hard code the email "firstname.lastname@example.org", it works the Controller statement below works but if i pass @contact.primary_email_address , it does not return anything (it does not error off).
in my rails c, I can see the Contact has an email address
Is the syntax correct on the .where?
@emails = @account.messages.where(email: @contact.primary_email_address)