[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Sending response headers with eRuby

Alex Dunae

12/18/2007 5:16:00 PM

I have a little Ruby program that runs over HTTP via eRuby. I need to
be able to send custom HTTP status codes (and other headers) but it
seems that they're all set and flushed by the time my rhtml file is
processed.

I see this is possible by running a straight Ruby script with the CGI
library, but I'm not able to call scripts in /usr/bin (where Ruby is
stored) over the web on my shared host.

Is there any way to send headers with eRuby?

Thanks in advance,

Alex