[1] pry(#)> self.member = Array.new
=> []
[2] pry(#)> self.member.push( User.find(memberUid.first).dn )
NoMethodError: You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.push
The code in the ruby file is a little different. The above resulted by removing the each loop for debugging.
[1] pry(#<Group>)> puts "#{self.member.class}"
Array
=> nil
[2] pry(#<Group>)> self.member = []
=> []
[3] pry(#<Group>)> puts "#{self.member.class}"
NilClass
=> nil