Specify different port for submit action

I’ve got a form that submits to :controller => ‘files’, :action =>
‘upload’. I want to have this action running on a different port to port
80. How can I do this in Rails?

For some background information, I’m using nginx proxying to a mongrel
cluster and I need to pass this request onto a mongrel server to get
upload progress information. At least, I think I do :slight_smile:

Any help would be much appreciated.

Regards

Adam

Adam G. wrote:

I’ve got a form that submits to :controller => ‘files’, :action =>
‘upload’. I want to have this action running on a different port to port
80. How can I do this in Rails?

For some background information, I’m using nginx proxying to a mongrel
cluster and I need to pass this request onto a mongrel server to get
upload progress information. At least, I think I do :slight_smile:

Any help would be much appreciated.

Regards

Adam

Try:

:port => 1234, :controller => ‘files’, :action => ‘upload’

I am pretty sure it really is that simple.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs