DEV Community

Discussion on: Rails Crash Course: Building Follower/Following Relationship

Collapse
 
prpe profile image
Muhammadreza Haghiri

A neat tutorial.
I just add this :
before going to the migration you must have a Relationship model. So, make one :

rails g model Relationship

Also, I didn't get it right, how you would add follow/unfollow buttons to the user profile?