[Rails] Re: executing a generator on the browser

2009-02-10 Thread elioncho
Yes it works great, thanks a lot Rey! On Feb 10, 11:58 am, Rey wrote: > My advice stands. > You'll need to call the generator using system > e.g.: system(script/generate blah blah parameters here) > selecting a target directory could be another story, if this generator > does not accept a ta

[Rails] Re: executing a generator on the browser

2009-02-10 Thread Rey9999
My advice stands. You'll need to call the generator using system e.g.: system(script/generate blah blah parameters here) selecting a target directory could be another story, if this generator does not accept a target as a parameter. how about moving the generated files after you've run the command

[Rails] Re: executing a generator on the browser

2009-02-10 Thread bbtosurf
Hello Rey and thanks for your answer. This generator belongs to a gem. So the idea is that when a user is browing my website and click on a specific button this generator should be executed and directory of files is created on his personal folder on the server (this folder is created when a user s

[Rails] Re: executing a generator on the browser

2009-02-10 Thread Rey9999
I'm not sure of what you're asking, but if this 'generator' is an application residing on the server running your web application, you can call it using the ruby command system('executable_name'). regards, rey On 10 Feb, 01:01, bbtosurf wrote: > Hi > > I currently have a generator which cre