Questions tagged [acts-as-follower]
16 questions
2
votes
1 answer
Ruby on rails storing user information
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.…

Jack
- 21
- 1
1
vote
0 answers
no implicit conversion of nil into String - Ruby on Rails
Im adding acts as follower to my app. but its coming up with the below error regarding my follow method when i click on the follow button which is on a users show page. im not sure what it means or how to resolve. ive looked at other questions and…

b.herring
- 563
- 2
- 18
1
vote
2 answers
How to check if the current_user blocks the target user with Acts-as-Follower
I'm unable to check if the current_user is blocking the target user. I'm trying to create a toggle button for the block/unblock feature. I don't know how people were able to do it, unless their solution wasn't AJAX ready. How can I check if the…

Johnny C
- 121
- 1
- 1
- 11
1
vote
1 answer
Follow(acts_as_follower) a tag(acts_as_taggable_on)
I'm developing a Rails app where users can follow a tag. I'm using acts_as_taggable and acts_as_follower, but I don't know how to proceed.
User model:
class User < ApplicationRecord
acts_as_follower
end
Posts model
class Post <…

Junior Miranda
- 63
- 2
- 6
1
vote
1 answer
acts_as_follower issue with following users
I have a User model created in devise:
class User < ApplicationRecord
# Include default devise modules. Others available are:
# :confirmable, :lockable, :timeoutable and :omniauthable
devise :database_authenticatable, :registerable,
…

Gurmukh Singh
- 1,875
- 3
- 24
- 62
0
votes
0 answers
follower_type and followable_type in acts_as_follower gem giving different output in rails console and vs-code terminal
I'm using
gem 'acts_as_follower', github: 'tcocca/acts_as_follower', branch:
'master'
and I have 2 users, user1 is following user2. so, to check wheather user1 is following user2 I'm doing this
u1 = User.find(1) u2 = User.find(2) u1.following?(u2)…

Soumik Maity
- 46
- 4
0
votes
1 answer
unfollow user not woking: acts as follower gem
I am attempting to allow a user to follow or unfollow a user via the acts as follower gem. This is my show view:
<% @runs.each do |run| %>
<%= run.user.try(:username) %>
…

westman2222
- 663
- 1
- 12
- 30
0
votes
2 answers
using acts as followable gem on tweets
im trying to add acts a follower to my app so a user can follow other users and on the tweets index page only display the current users tweets and the tweets of the people they are following. i currently have a "follow" button on the user show page,…

b.herring
- 563
- 2
- 18
0
votes
1 answer
using acts as followable to only display tweets from people that a user follows
currently on my twitter clone, every tweet from every user is displayed on the index page, but i want to only display the tweets from the people that a user follows, which a user can do on another users show page. im trying to use acts as followable…

b.herring
- 563
- 2
- 18
0
votes
1 answer
Follow and unfollowing button issue while closing & reopening the app
In the Tab Bar Controller here are four tabs namely home, discover, notification and user profile. The discover tab controller lists all the users in Firebase. The users are listed with username and follow button. If the current user taps on follow,…

BizDev
- 371
- 1
- 4
- 21
0
votes
0 answers
Rails: acts_as_follower listing blocked users
I'm doing a job with acts_as_follower gem that users can follow others users. The documentation says:
To get all of the records that an object is following that have not
been blocked use the following
user.all_following
# Returns an array of…

Fernando Aureliano
- 894
- 12
- 35
0
votes
2 answers
Building an AJAX view to follow users
I am following Django By Example tutorial and unable to follow users. I click the follow button but nothing happens. I've went over that section over and over, copy and pasted the code. It still doesn't work.
Here is my…

rage mon
- 53
- 9
0
votes
1 answer
followable_type 'ApplicationRecord' instead of 'User' in RoR app
in my project I'm using acts_as_follower gem, to implement follow/un-follow feature among users
so in my User class, I have
class User < ApplicationRecord
...
acts_as_follower
acts_as_followable
...
end
but in the db table Follow, the…
user4154276
0
votes
1 answer
How to dynamically switch text or button from follow to Un-follow using Ajax?
All, I have a function within my controller that I am calling directly. However, once it executes I would like it to change to either follow or un-follow. I am using Act as Follower Gem and having some issues with changing my follow or un-follow…

Randy mangal
- 87
- 9
0
votes
1 answer
acts_as_followers and friendly_id gems not finding id
Im using the acts_as_follower gem and friendly_id gem.
Iv set up acts_as_follower and everything is working as it should, I am able to follow Profiles as required. But now I have added the friendly_id gem to show profiles urls as profile/myname…

Gurmukh Singh
- 1,875
- 3
- 24
- 62