Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Listing friends

So far thanks to this chapter we already have lists of users and the functionality for our users to build relationships. Now we need to combine these to build a friends list for our users. This would either be a user viewing their own friends, or viewing the friends of another user.

Our friends

To view our own friends, we would visit http://oursite/relationships. This would call our relationship controller's default method, which needs to get our friends and display them on the page.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint