search for: m000175

Displaying 2 results from an estimated 2 matches for "m000175".

Did you mean: 3000175
2006 Mar 28
1
Using request.env[''REMOTE_HOST'']
Hi, I''m currently using request.env[''REMOTE_HOST''] to pull back the remote users IP address. This worked fine in development (and production) under Webrick but when I tried to use it with mongrel, it kicked back an error. Is there a more appropriate way to find out the remote users IP address? Thanks in advance! -- Posted via http://www.ruby-forum.com/.
2007 Dec 13
1
How to set response code
Hi ! I''m trying to return a simple 201 Created status to the caller, but I can''t seem to do it. I use curl from the command line with the --verbose option, and the response is really 200 OK. My controller code: class Observations < Application def create(feature, node, observation_type) # Do some work... response.status = "201 Created"