Closed hyperrjas closed 12 years ago
You can do an iteration on the list of followers the user has, like:
user.followers.each do |follower|
puts follower.name
puts follower.inspect
end
and sorry about the late reply regarding the demo you emailed me, but I don't have a demo online right now. But the description summarizes most of its functions. You can also check out the rspecs here for other test samples.
Cheers! alec guintu
Thanks. That it does works fine :D. Thank you very much!.
For me it does works this method "all_followers". e.g.
user.all_followers.each do |follower| follower.name follower.inspect end
Ahahaha! That was funny. Yah I forgot it was named like that.
Cheers!
How I can I access the attributes of my followers? or how can an object that is followed to access the attributes of his follower?