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
0
votes
2 answers

Delete activity after association is deleted with public_Activity and socialization

I am using socialization gem and public_activity gem in a rails 4 app. I have everything working pretty much how I want it, except I cannot figure out how to delete activity records once the item it refers to is…
Chris Valentine
  • 1,557
  • 1
  • 19
  • 36
0
votes
1 answer

Multiple render in rails controller

Hello I am trying to retrieve html partials as a single string in an ajax call. I am using public_activity gem. Since I didnt find a way to call the partial(render_activity) from the controller. I tried using the following code, but I am getting an…
Flezcano
  • 1,647
  • 5
  • 22
  • 39
0
votes
2 answers

Activerecord query with joins

So far, I have this query for the gem PublicActivity. One (that I'm aware of) problem with it, is if the activity.trackable is nil, it will still include it in the query, thus forcing me in the view to run the conditional, if activity.trackable,…
Justin
  • 4,922
  • 2
  • 27
  • 69
0
votes
1 answer

Public activity select unique foreign keys by created time

I'm looking to do a query for an activity object in my app. I'm using the public_activity gem and I have a list of activities which are connected to several models and I would like to list out the most recent unique activity. Basically I would like…
0
votes
2 answers

views taking long time to render in rails 4 with public_activity

Accessing an index page takes about 6 seconds which is way too long considering there are only 4 users registered on my app right now in development environment. I'm using rails 4, devise, cancancan, public_activity,…
monty_lennie
  • 2,871
  • 2
  • 29
  • 49
0
votes
1 answer

Activity feed not showing records by using public activity gem rails

I want to display my activity feed for absences on my dashboard page. I am using public activity gem. In my modal I have added absence.rb class Absence < ActiveRecord::Base include PublicActivity::Model tracked belongs_to :user has_many…
0
votes
1 answer

Save originator_id, Activity Feed from Scratch

I am currently following Ryan Bates tutorial on activity feed from scratch. **I added a originator_id to the database so that I can save the ID of the Owner who originated the post. But for some reason I can't get it to work. My Database from…
Serge Pedroza
  • 2,160
  • 3
  • 28
  • 41
0
votes
1 answer

using acts_as_commentable comment_threads method in view for nesting comments in public_activity activities

I am currently trying to add comments via the acts_as_commentable_with_threading gem for all activities via public_activity and I am having trouble capturing each activity to use the the method comment_threads on in order to get each activity's…
-1
votes
1 answer

uninitialized constant PublicActivity::ORM

I already have an table with name activities so I created public_activity.rb file with this line as some one suggested in an issue PublicActivity::ORM::ActiveRecord::Activity.table_name = "notifications" but when I try to run rails g…
Asnad Atta
  • 3,855
  • 1
  • 32
  • 49
1 2 3 4 5
6