title: Rails faye realtime notification system
body: <p>Im trying to build a simple faye realtime based notification system so I can execute a certain javascript on certain actions.The idea is relatively simple though Im having problems implementing it, not sure wich road to take on this after reading the documentation of faye.</p>
  
  <p>Current thoughts are</p>
  
  <ul>
  <li>One unique faye channel per logged-in user, so you can push a action (popup, set text) to a certain user only</li>
  <li>One div in my app layout that I can write text to </li>
  <li>One div in my app that holds layout for a popup</li>
  </ul>
  
  <p>Now I've seen the railscast tutorial about faye but ryan works from a controller/action method create. I don't want to insert stuff in the db, just call the JS function from anywhere ( building an application helper would be a good idea I think ), I would just want to do something like "execute javascript 'set_text'" and execute javascript 'show_popup' </p>
  
  <p>What would be the best way to build such functionality with Faye, Basically I only have to </p>
  
  <ul>
  <li>Execute a javascript function on a certain Faye channel</li>
  </ul>
  
  <p>To accomplish the popup and text message.
  A bit lost on this anyone can point me in the right direction or maybe have build such functionality already? thx in advanche! </p>