Then I think it must be

@groups = Group.where(:reader_id => @authenticated_user.id)