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? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
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 Schuerig mailto:michael-q5aiKMLteq4b1SvskN2V4Q@public.gmane.org http://www.schuerig.de/michael/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
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.-- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
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 Schuerig mailto:michael-q5aiKMLteq4b1SvskN2V4Q@public.gmane.org http://www.schuerig.de/michael/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
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 Beck AIM: kreiggers --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---