This is what's in my controller. I'm using devise and I'm trying to show take the user email and pass it into a where to find the specific family so I can display just the unique family controlled by the user.
I'm having an issue with the string interpolation. If I hard code the email into the query it works fine. But I want it to be dynamic. Thanks for the help!
home_controller.rb
user_email = current_user.email
@unique_family = Unit.where(:accountOwner => '#{user_email}')