# Difficult RoR Project

**URL:** <https://www.ruby-forum.com/t/difficult-ror-project/111076>\
**Category:** Rails\
**Created:** [August 2, 2007, 11:48am UTC](https://www.ruby-forum.com/t/difficult-ror-project/111076 "2007-08-02T11:48:33Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [August 2, 2007, 11:48am UTC](https://www.ruby-forum.com/t/difficult-ror-project/111076/1 "2007-08-02T11:48:33Z")

</div>

Hi,

I’m currently working on a data analysis project that involves  
analysing and then injecting to my main database data held on a number  
of different remote servers. My main RoR application is basically a  
web viewer for the analysed data but it is also going to be used to  
configure the data analysis on the remote machines.

I’m currently using the settings plugin found at

> **[Beautiful Pixel](https://beautifulpixel.com/search/Settings)**
>
> A log of random code experiments and semi-useless thoughts from some software developer named Alex...

(see the 4 posts about the settings plugin) and it works nicely.

What I would like to be able to do is have small ruby apps located on  
the remote machines that utilise this settings plugin and my  
activerecord models to work out what data to analyse and then to  
inject the results into my database. The scripts will be run  
periodically as cron jobs or something similar.

Is it possible to utilise these aspects of my RoR application in  
remote scripts? Would it be better to build controllers into the RoR  
app and the scripts just call these controllers via xmlrpc, soap or as  
http requests to deal with data entry etc.?

I’m quite new to projects of this size and so any advice would be  
greatly appreciated.

Thanks in advance,  
Toby

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [August 2, 2007, 12:32pm UTC](https://www.ruby-forum.com/t/difficult-ror-project/111076/2 "2007-08-02T12:32:41Z")

</div>

Ok, after thinking about it a little more, it makes sense to use  
either a web service like XML-RPC or SOAP or take the RESTful  
approach.

I have used XML-RPC before but not the RESTful approach. How do you  
call a method on the server when using REST from say a script that  
runs on a linux box? Is it possible? Does it make more sense just to  
use XML-RPC for this?

Thanks,  
Toby

On Aug 2, 10:47 am, “removed\_email\_address@domain.invalid” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [August 2, 2007, 12:36pm UTC](https://www.ruby-forum.com/t/difficult-ror-project/111076/3 "2007-08-02T12:36:42Z")

</div>

You mean activeresource ?

On 8/2/07, removed\_email\_address@domain.invalid [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Thanks,
> 
> > configure the data analysis on the remote machines.  
> > Is it possible to utilise these aspects of my RoR application in
> 
> >

–  
Cheers!

- Pratik  
[http://m.onkey.org](http://m.onkey.org)

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [August 2, 2007, 12:56pm UTC](https://www.ruby-forum.com/t/difficult-ror-project/111076/4 "2007-08-02T12:56:44Z")

</div>

Could you elaborate? I haven’t used activeresource before…

Thanks,  
Toby

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [August 2, 2007, 1:21pm UTC](https://www.ruby-forum.com/t/difficult-ror-project/111076/5 "2007-08-02T13:21:45Z")

</div>

Thanks.

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [August 2, 2007, 1:02pm UTC](https://www.ruby-forum.com/t/difficult-ror-project/111076/6 "2007-08-02T13:02:44Z")

</div>

[http://www.google.co.uk/search?hl=en&client=firefox-a&rls=org.mozilla%3Aen-GB%3Aofficial&hs=pFY&q=rails+activeresource+tutorial&btnG=Search&meta=](http://www.google.co.uk/search?hl=en&client=firefox-a&rls=org.mozilla%3Aen-GB%3Aofficial&hs=pFY&q=rails+activeresource+tutorial&btnG=Search&meta=)  
[http://dev.rubyonrails.org/browser/trunk/activeresource/README](http://dev.rubyonrails.org/browser/trunk/activeresource/README)

On 8/2/07, removed\_email\_address@domain.invalid [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > > runs on a linux box? Is it possible? Does it make more sense just to
> > > 
> > > > analysing and then injecting to my main database data held on a number  
> > > > inject the results into my database. The scripts will be run  
> > > > Thanks in advance,  
> > > > Toby
> > 
> > –  
> > Cheers!
> > 
> > - Pratikhttp://m.onkey.org
> 
> >

–  
Cheers!

- Pratik  
[http://m.onkey.org](http://m.onkey.org)

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [August 2, 2007, 2:11pm UTC](https://www.ruby-forum.com/t/difficult-ror-project/111076/7 "2007-08-02T14:11:56Z")

</div>

I’m using rails 1.2. How do I get hold of activeresource? Is there a  
plugin? Or do I have to go on edge?

On Aug 2, 12:21 pm, “removed\_email\_address@domain.invalid” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
