Questions tagged [public-activity]

Easy activity tracking for models - similar to Github's Public Activity

public_activity provides easy activity tracking for your ActiveRecord, Mongoid 3 and MongoMapper models in Rails 3 and 4.

Simply put: it can record what happens in your application and gives you the ability to present those recorded activities to users - in a similar way to how GitHub does it.

Github Repo

84 questions
1
vote
1 answer

Rails Public_Activity gem recipient id getting error

I am using a gem called Public_Activity I am trying to add a recipient whenever someone create the comment for that I am using this code : @comment.create_activity :create, recipient: @friend, owner: current_user wehre @freind = 2 or whatever when…
Nilay Singh
  • 2,201
  • 6
  • 31
  • 61
1
vote
2 answers

Is it possible to use the gem Unread with the gem Public Activity?

I am currently using the gem 'Public Activity', and in the view I have a users activity filtered to only show that user the activities that apply to them, such as 'John Smith commented on your post'. However, I would like to add notifications to…
1
vote
1 answer

Read or unread web notifications using public_activity gem

I am working with public_activity gem. I have implemented read and unread web notification concept for current_user who logged in the application. But the scenario is like this, If i comment to a task, the web notification will come to whomever it…
1
vote
1 answer

Undefined method error with Public Activity on .trackable

I've been following the Railscast video called 'Public Activity' and I've gotten stuck on the following error: undefined method `post' It happens when I try to output what post that have been created. My partial looks like…
sja
  • 347
  • 1
  • 10
1
vote
1 answer

Displaying activities by other users on current user content with public_activity gem

I want to be able to display to the user the comments and likes he receives on the content he creates in my rails app, as well as notify him when a another user follows him using the public activity gem. So far I've made Comment, Like and…
8vius
  • 5,786
  • 14
  • 74
  • 136
1
vote
1 answer

Rails sql complex query for public_activity

I'm using the public_activity gem with rails 4 to generate an activity feed. The models are as follows: Class Post has_many :comments has_many :taggings has_many :tags, through: :taggings Class Comment belongs_to :post Class Tagging …
Ryan.lay
  • 1,741
  • 2
  • 17
  • 30
1
vote
0 answers

Building stackoverflow-like inbox in Rails

Using rails and possibly the public_activity or paper_trail gem, how could I conceptually build a user inbox: which displays latest updates that are relevant to the user. In stackoverflow's example, there are multiple things that trigger a…
Hopstream
  • 6,391
  • 11
  • 50
  • 81
0
votes
1 answer

ROR - ActiveRecord::ConnectionNotEstablished: No connection pool for PublicActivity::ORM::ActiveRecord::Activity

I am trying to do minor upgrade from ruby 2.3.1 to 2.3.8 and facing some issues. Everything was working fine until I run the command rake db:create and find the following error - rake aborted! ActiveRecord::ConnectionNotEstablished: No connection…
0
votes
0 answers

Rails: No connection pool for PublicActivity::ORM::ActiveRecord::Activity

I'm trying to upgrade an existing project from Ruby 2.3 to Ruby 2.6 Everything was working fine until I received the following error on running rake db:create rake aborted! ActiveRecord::ConnectionNotEstablished: No connection pool for…
0
votes
1 answer

Rendered partial is not visible?

So I'm passing down locals to a partial via PublicActivity and try to render the partial on the users/show.html.erb file, like so: <% @activities.each do |act| %> <% render partial: "posts/#{act.trackable.check_type}", locals: { tweet:…
Prometheus
  • 799
  • 8
  • 28
0
votes
2 answers

Rails Public Activity send email notification

I have setup Public Activity to show notifications. Notifications are created with right recipient. Now I want to send out email to notification recipient. Normally I'd call the mailer on controller create. But on notifications controller I got…
catmal
  • 1,728
  • 1
  • 16
  • 32
0
votes
1 answer

Using Public Activity to Show who has been followed

Im using public activity to provide notifications for activities of people followed. I want to show if a user follows another in the format of John Doe followed Sam Smith But all I can achieve so far is John Doe followed 1 here is my code.…
Sawo Cliff
  • 2,888
  • 1
  • 17
  • 21
0
votes
1 answer

rails public_activity display changes in page

Good day, I am using this Gem: Public_activity Gemfile gem 'public_activity', :git => 'https://github.com/chaps-io/public_activity.git', :branch => '1-6-stable' Then I am tracking changes in this model: Model Event include…
T.Krmela
  • 33
  • 10
0
votes
1 answer

Paperclip Get dirty file before update

Background: I'm developing Rails Application and in some models I'm using paperclip gem to save attachments. In same models I'm using public_activity gem to track the model changes & I've prepared Restore functionality based on that to be able to…
Moamen Naanou
  • 1,683
  • 1
  • 21
  • 45
0
votes
1 answer

Rails 5 ArgumentError (wrong number of arguments (1 for 0)

In my Rails 5 app, I'm using the Public_Activity gem and I'm trying to record an activity, but running into an error: ArgumentError (wrong number of arguments (1 for 0). I tried to record the activity in my controller, but I was having trouble…
yellowreign
  • 3,528
  • 8
  • 43
  • 80