Wednesday, 18 September 2013

Setting up Acts_as_follower on RoR4

Setting up Acts_as_follower on RoR4

I'm on Rails 4 and recently needed the Gem Acts_as_follower.
I Set up my Models and run the Generator. In my View file I tried
user.follow_count
and it worked, so i guess the initial Set up went Fine.
But from this point on, i'm in the dark as far as setting up my view files.
What i'm trying to do is to set up the basic functions of
Acts_as_follower, the 2 Buttons for user.follow and user.stop_following.
Although i read through the Github Documentation, i could not understand
how to do this.
If anybody could enlighten me :)

No comments:

Post a Comment