ActiveRecord - singular form in joins, plural form in where

Even after a decent number of years on Rails, I still make the occasional mistake of using the singular association form in the where clause. Anybody else experiencing this?

Eg.

class User 
  belongs_to :account
end

User.joins(:account).where(account: { status: :active }) #should be accounts:
3 Likes

Do you think something like a did_you_mean extension might help this?

More messaging around it might have been helpful back in the day, yes. Now that I think about it, this was actually a great starting point for beginner me to start debugging and understanding raw SQL.