I am developing a social network for a class we have to be able to follow other user accounts. Right now I am stumped on whats the best way to do this I have a method follow that uses to user objects current_user.follow(user) something like that. How would I go about storing the information on the user index page so the current user could follow any of those users on that page.
Would it be best to store the user ids in an hidden field, and query for that user when the follow button is clicked.