Rails and a Jabber (Gtalk) Bot

I’m building a jabber bot for my cms eribium (http://www.eribium.org).
Is it possible to give access to the script/console of rails? Obviously
the bot can’t be part of rails as the long requests would crash the fast
cgi - but is there a way to “include” rails? All I’m looking for is a
way of querying the rails app for information and status, as well as a
way of CRUDing pages. Any ideas?

On Saturday 07 October 2006 23:24, Alex MacCaw wrote:

I’m building a jabber bot for my cms eribium
(http://www.eribium.org). Is it possible to give access to the
script/console of rails? Obviously the bot can’t be part of rails as
the long requests would crash the fast cgi - but is there a way to
“include” rails?

Hi Alex,

the bot can’t be part of the process serving web requests, but it can
access the app’s model just the same. If you
require ‘config/environment’ in the bot you have all you need.

All I’m looking for is a way of querying the rails
app for information and status, as well as a way of CRUDing pages.

I may not understand what you’re trying to do, but where do pages come
into the mix? What more do you need when you can get at the model
directly?

Michael


Michael S.
mailto:[email protected]
http://www.schuerig.de/michael/

Thanks Michael,
All working now.
Is is possible to give access to the rails console (a bit like
http://tryruby.hobix.com/) through the jabber interface.

the bot can’t be part of the process serving web requests, but it can
access the app’s model just the same. If you
require ‘config/environment’ in the bot you have all you need.

On Sunday 08 October 2006 13:53, Alex MacCaw wrote:

Thanks Michael,
All working now.
Is is possible to give access to the rails console (a bit like
http://tryruby.hobix.com/) through the jabber interface.

the bot can’t be part of the process serving web requests, but it
can access the app’s model just the same. If you
require ‘config/environment’ in the bot you have all you need.

I think there’s a gem called tryruby or something available on
RubyForge. Unfortunately, it appears to be down at the moment, so I
cannot check.

Michael


Michael S.
mailto:[email protected]
http://www.schuerig.de/michael/

On Oct 8, 2006, at 4:53 AM, Alex MacCaw wrote:

Thanks Michael,
All working now.
Is is possible to give access to the rails console (a bit like
http://tryruby.hobix.com/) through the jabber interface.

Cool, its working!

great, so now I’m curious… what is the gist of what you’re trying to
do?


Craig B.

AIM: kreiggers