[Rails] Re: Post request from controller

2009-03-10 Thread bbtosurf
I am sorry here it is again: I have tried posting to test method and it doesn't do anything. The browser stays on waiting for response...and after a couple of minutes I get this: Timeout::Error in BuildsController#create execution expired def create require 'net/http' require 'uri' @build

[Rails] Re: Post request from controller

2009-03-10 Thread bbtosurf
d.new (params[:build]) if @build.save res = Net::HTTP.post_form(URI.parse ('http://localhost:3000/apps/1/build'), {'q'=>'ruby', 'max'=>'50'}) end end def test puts params[:q] puts params[:max] end sin la parte del delicioso On Mar 9, 7:12 pm,

[Rails] Post request from controller

2009-03-09 Thread bbtosurf
Hello guys, I'm working on an app that posts a file to another rails application who is in charge of running some scripts over it, create a build and send it back again. Right now I have a form where the user selects the type of build to run over and a build button. On my controller on the create

[Rails] Re: executing a generator on the browser

2009-02-10 Thread bbtosurf
x27;). > > regards, > rey > > On 10 Feb, 01:01,bbtosurf wrote: > > > Hi > > > I currently have a generator which creates a directory of files. I > > want clients on my app to be able to execute that generator and save > > those files in their personal f

[Rails] executing a generator on the browser

2009-02-09 Thread bbtosurf
Hi I currently have a generator which creates a directory of files. I want clients on my app to be able to execute that generator and save those files in their personal folder on the server. The thing is that I have always executed this generator via terminal and it always creates the series of f

[Rails] Re: Changing routes

2008-11-10 Thread bbtosurf
Hmmm I am not pretty sure, but try checking the path_prefix and name_prefix methods. On 8 nov, 11:33, elioncho <[EMAIL PROTECTED]> wrote: > Hello, > > Any ideas, or is this not a very bright idea after all? > > Thanks, > > Elioncho > > On Nov 7, 3:55 pm,elioncho<[EMAIL PROTECTED]> wrote: > > > H