hi - any help would be appreciated. many thanks.
i have this in my controller action
@emails = @account.messages.where(email: @contact.primary_email_address)
@contact is a defined controller method
@contact = Contact.find(params[:id])
primary_email_address is a defined model method
if email = email_addresses.where("email_type = ?", "Primary").first
Both of the METHODs work when use in other places. When you here, it does not seem to be picking up the email
that I am expecting. Just wondering if the SYNTAX above is correct?