This final chapter of the RoR Tutorial will require you to have users following users.
You’re on the last chapter! This one will require you to implement the final piece of functionality that makes microblogging what it is – allowing users to follow each other. With your now excellent knowledge of associations, you should be able to see that you’ll run into some naming issues (you won’t get too far with a User who
has_many :users). It’s a many-to-many relationship that uses the SAME model for both sides (“self-referential”)!
As an added bonus, you’ll get a chance to touch a bit of AJAX when making it so the buttons for following don’t actually refresh the page with each push. Hooray learning!
This section contains helpful links to other content. It isn’t required, so consider it supplemental for if you need to dive deeper into something.