I have a user array with an invitations_attributes array inside of it. The invitations_attributes array has another array inside of it. Here is the structure:
"user"=>{"invitations_attributes"=>{"6"=>{"email"=>""}, "7"=>{"email"=>""}, "0"=>{"email"=>"[email protected]"}, "1"=>{"email"=>""}, "2"=>{"email"=>""}, "3"=>{"email"=>""}, "4"=>{"email"=>""}, "5"=>{"email"=>""}}}}
What I want to do is get a count of invitations_attributes where the email value is not blank. So in the above case, the count would be 1.