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:

https://github.com/tcocca/acts_as_follower


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -