What's going on here: > p1 = Person.new > p2 = Person.new
> p1.errors[:base] = "p1 error"
> p2.errors[:base] = "p2 error"
> p2.errors[:base] += p1.errors[:base]
> p2.errors
=> {:base=>["p2 error", ["p2 error", "p1 error"]]}
Any ideas why I'm getting that extra array wrapper, as if I had used
"<<"? Not to mention the duplication of the p2 error? Am I missing
something dumb?
Thanks for any insight...
-glenn
--
SD Ruby mailing list
[email protected]
http://groups.google.com/group/sdruby
