How can you continuously append text to a page with POST requests in rails?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Sohan J

    How can you continuously append text to a page with POST requests in rails?

    Hey guys, I'm just starting out with Rails, and I'm trying to build a tool that acts as a server for collecting log output across many machines. I was wondering if anyone could point me in the right direction of how to continuously post text to a rails page.

    For example, I have a few machines that continuously run cron jobs and other scripts. Each machine is identifiable by its mac address. So I was thinking they could keep sending POST requests of the form server:3000/machines?macadd r=0.0.0.0&messa ge="logoutput"

    Is there a more sensible way to do this? Could anyone point me to some docs on how I can implement this functionality? I have the basic structure with scaffolding, but I'm not exactly sure how I can keep appending text to a given page. Thanks
Working...