New Rails Plugin: social feed

socialfeed.png

This is our latest and also largest plugin for ruby on rails so far. After the installation it adds a social feed as seen in the picture to your rails application. The sources have been extracted from autoki which has had a social feed for a couple of months now, so rest assured we have put some thoughts into it over time. :)

Features so far: As a user I can decide what kinds of events I want to see on my social feed and also wether I want to be sent an email when an event occurs. I can also decide wether others will receive a notification on their social feed concerning my own actions.

The plugin includes model extensions for the user, a controller and views for viewing the feed and editing settings as well as a generator to easily create new event types so, getting started only takes a couple of minutes. For more info check out the README or get the sources from github.

Tags: , , , ,

12 Responses to “New Rails Plugin: social feed”

  1. Alexander Lang Says:

    wow, we are already #1 on google when searching for “rails social feed”. yay. this really seems to be the first social feed plugn for rails.

  2. upstream agile - software » New Rails Plugin for making ActionMailer asynchronous Says:

    [...] use this on autoki which sends a lot of email (thanks to our social feed plugin [...]

  3. Brad Says:

    Firstly, this is a great plugin. I am setting it up and can see the benefits already. Great work. I have a problem getting the javascript to work on the ‘settings’ page. The settings are not saved from the tickboxes. Should be application.js have anything in it? Alteratively can you tell me the values that are stored in the 3 User model fields, as I will try setting up a non-Ajax standard form to maintain the feed settings. I can’t quite work it from looking at the plugin code, but hey I am also a newbie. Many thanks!

  4. alex Says:

    hi brad,

    no there’s no code needed in application.js. the settings page relies on prototype.js and effects.js (scriptaculous) though.

    all the FeedEventsController does is call subscribe_to_feed_event / unsubscribe_from_feed_event / subscribe_to_email/unsubscribe_from_email (user receives events from others) disable_feed_event / enable_feed_event (privacy settings). the parameter is always the name of the event class, e.g. ‘MessageReceivedEvent’. you can see this in http://github.com/langalex/social_feed/tree/master/lib/social_feed/feed_events_controller_extension.rb

    if you have any more problems contact me on skype (langalex) or jabber (alex@jabber.ccc.de)

  5. Aamer Says:

    Pretty cool plugin, but is there a good way to use this for events that cause a model to be modified rather than just created?

    For example, imagine if you want to notify all of a user’s friends if they change their address or phone number.

  6. Kevin Says:

    Pretty cool plugin,but i have encountered some problem when i test.It reported that *undefined method `serialize’ for Object:Class*

    the detail thing is vendor/plugins/social_feed/lib/social_feed/user_extension.rb:6:in `included’
    vendor/plugins/social_feed/lib/social_feed/user_extension.rb:5:in `class_eval’
    vendor/plugins/social_feed/lib/social_feed/user_extension.rb:5:in `included’
    app/models/user.rb:5:in `include’
    app/models/user.rb:5
    app/views/pages/index.rhtml:8:in `_run_erb_47app47views47pages47index46rhtml’
    app/views/pages/index.rhtml:4:in `each’
    app/views/pages/index.rhtml:4:in `_run_erb_47app47views47pages47index46rhtml’

    i am so curious about that,i used ruby 1.8.6 (2008-03-03 patchlevel 114) [i686-linux] and Rails 2.0.2

  7. Alexander Lang Says:

    your user class doesn’t seem to have a serialize method – that method should be provided from activerecord. (see http://apidock.com/rails/ActiveRecord/Base/serialize/class) – does you user class derive from activerecord::base?

  8. Kevin Says:

    Yes, i derive from activerecord::base.
    class User < ActiveRecord::Base

    and i add the “serialize :nickname” in user.rb and it works.

  9. Kevin Says:

    So i am puzzled for this problem,could you help me?thanks a lot

  10. Alexander Lang Says:

    so it works if you put it directly into user.rb but it doens’t work in the user extension module? which rails version are you using?

    i’m not sure if i can be of much help without having access to your code. maybe you should just move the code into your user class for now.

  11. Kevin Says:

    Thanks a lot:)and i moved the code in user.rb directly and it works.
    i used rails 2.0.2.

  12. laummatry Says:

    продам Форд-Фокус 2008 года за 200 тр. торг возможет. срочно!!!
    +7 960 200 9209

Leave a Reply