I have an ajax request to my rails app that uses a header named “X-
Requires-Resp”
How can I access this header’s value in my controller?
I have an ajax request to my rails app that uses a header named “X-
Requires-Resp”
How can I access this header’s value in my controller?
Try:
@headers[“X-Requires-Resp”]
mike @ fiveruns
http://www.fiveruns.com
eggie5 wrote:
I have an ajax request to my rails app that uses a header named “X-
Requires-Resp”How can I access this header’s value in my controller?
It doesn’t work, plus I get a deprecation warning. Any other ideas? I
have no idea why this would be so hard…!
On Sep 19, 1:50 pm, Mike P. [email protected]
On 9/19/07, eggie5 [email protected] wrote:
I have an ajax request to my rails app that uses a header named “X-
Requires-Resp”How can I access this header’s value in my controller?
I think you just get them CGI-style:
request.env[‘HTTP_X_REQUIRES_RESP’]
THANK YOU!!!
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs