Following functionality - database design problem - Rails 3 -
i need following functionality in app (twitter like). 1 user can fallow other user. have model user, , tried self many-to-many relation, don't know how implement in model.
can explain me example how this?
michael hartl's tutorial has entire section on follower relationships. recommend reading better understanding of self many-to-many relations. helped me lot:
http://ruby.railstutorial.org/chapters/following-users
you use gem acts_as_follower
, abstracts of design details out you:
Comments
Post a Comment