align-toparrow-leftarrow-rightbackbellblockcalendarcamerachatcheckchevron-downchevron-leftchevron-rightchevron-small-downchevron-small-leftchevron-small-rightchevron-small-upchevron-upcircle-with-crosscrosseditfacebookglobegoogleimagesinstagramlocation-pinmagnifying-glassmailmoremuplabelShape 3 + Rectangle 1outlookpersonplusImported LayersImported LayersImported Layersshieldstartwitteryahoo

Re: [ruby-89] anyone know of a good Facebook style event/activity tracking plugin?

From: Chris
Sent on: Friday, February 13, 2009 3:03 PM
Russell:

We've rolled our own here - we had a few post-save hooks that needed to fire off updating our mq, as well as wanting to have the status appearance managed via erb templates.  It wasn't too bad to implement - a class method that created custom after_* callbacks on the model.  Ours is a bit of an oddity in that we actually fire off a template render at that time, so the method looks a little like this:

class Foo
  creates_status :after => :create,
                           :template => "status/foo_create_status.html.erb",
                           :unless => :some_other_condition
end

If you're just going to keep it in db tho ( you don't need any special in-app hooks to fire off some logic when the data gets created ), you might consider just using triggers for your particular dbms.  It (depending on how complex you wanna get) pretty much precludes you from rendering templates for your status, but if you just want that activity log, it'd be quick and simple.

CZ

On Fri, Feb 13, 2009 at 2:43 PM, Miles Z. Sterrett <[address removed]> wrote:
Russell -

I'm not on Facebook (not being on Facebook allows me to scoff from time to time, and I like scoffing), but maybe this plugin will be of some use?  http://github.com/langalex/social_feed/tree/master

I have not used it, to be honest.  I just wanted to help, and it seemed to do what I imagine you are describing.  (Davey's description of it seems to jive with this.)

MilesZS



On Fri, Feb 13, 2009 at 2:29 PM, Russell <[address removed]> wrote:
I'm looking to implement a feature much like that of the Facebook 'News Feed'. I want to be able to list activity n the site for certain actions like commenting, rating, creating things, etc...

Are there any good plugins or techniques any of you have used to accomplish this?

Thanks




--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Russell ([address removed]) from indy.rb - The Indianapolis Ruby Brigade.
To learn more about Russell, visit his/her member profile
To unsubscribe or to update your mailing list settings, click here

Meetup Support: [address removed]
632 Broadway, New York, NY 10012 USA





--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Miles Z. Sterrett ([address removed]) from indy.rb - The Indianapolis Ruby Brigade.
To learn more about Miles Z. Sterrett, visit his/her member profile

To unsubscribe or to update your mailing list settings, click here

Meetup Support: [address removed]
632 Broadway, New York, NY 10012 USA

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy