[Rails] Re: Reusing the model to write a CLI

2011-09-13 Thread maskiran
Hi Thanks a lot. I guess as all of you have suggested my CLI would just be calling the web links directly using curl or wget. I am using such a method now. I thought there might be another way that I could use to write cli, some thing of the form require rails require mydatamodel use the methods i

Re: [Rails] Re: Reusing the model to write a CLI

2011-09-12 Thread Norm Scherer
On 09/12/2011 05:53 PM, maskiran wrote: say its a basic blog application that has web UI (myblog.com/posts/ new) is an action to add a new post and it shows up a web page with 'title' and 'content' field in the GUI that the end user fills in and saves Now I want to do the same thing using a CLI.

[Rails] Re: Reusing the model to write a CLI

2011-09-12 Thread Robert Walker
maskiran wrote in post #1021560: > say its a basic blog application that has web UI (myblog.com/posts/ > new) is an action to add a new post and it shows up a web page with > 'title' and 'content' field in the GUI that the end user fills in and > saves > > Now I want to do the same thing using a CL

[Rails] Re: Reusing the model to write a CLI

2011-09-12 Thread maskiran
say its a basic blog application that has web UI (myblog.com/posts/ new) is an action to add a new post and it shows up a web page with 'title' and 'content' field in the GUI that the end user fills in and saves Now I want to do the same thing using a CLI. I login into the server using ssh, then s