christospappas/streama — Issue #10: Small testapp for Streama
Author: mulderp
Created: 2012-02-24 19:53:10+00:00
State: open

It would be helpful to creatte a small test application, to see how Streama can be used in existing applications.

I created a small start here: https://github.com/mulderp/streama_testapp

The idea would be to have a NetworkUpdates#create publish to a public and/or private newsstream.

I got so far:

param_hash = {:user => current_user.id}.merge(params[:network_update])
network_update = NetworkUpdate.create(param_hash)
#current_user.publish_activity(:share, :object => network_update, :receivers => User.all )
# Activity.publish(:share, {:user => current_user, :object => network_update, :receivers => User.all })

However, either current_user and the :receivers part is not yet working out. Will have to check again when time allows.

Thank in any case for feedback!