Skip to content
Timmeh edited this page Sep 13, 2010 · 2 revisions

This example allows you to monitor a rails application, following up the creation and destruction of products.

The important files in this project are:

  • config/xmppconfig.yml which you edit to setup the bot
  • config/environment.rb in which you add
    require 'rails_plugin'
  • lib/rails_plugin.rb which handles the user’s messages
  • script/xmppserver.rb which is the server app

To run the example, set up the database, load the migrations, run

ruby script/xmppserver.rb

to start the bot, then start the rails app
ruby script/server

Clone this wiki locally