When calling @member.friends, the above code translates #{self.id} to
something crazy like 53931600 instead of the @member.id which is 2.
Any ideas why?
Yeah, the string is evaluated when first encountered, ie when your
Member class is loaded. At that point, I imagine self is the class,
which is why you get a weird self.id.
To prevent this use single quotes (') around your string instead of
double quotes (").