my version of the mini facebook task in ruby on rails