I used pfeed for getting database changes in the view. The gem originally supports only ActiveRecord.
However, I needed the gem for mongodb. So, I changed the gem to make it compatible for mongodb. The modified version of pfeed for mongoid can be found here. This is suitable for mongoid version 2.0.2 and rails 3.0.0.