(RoR) local_request? broken on DreamHost?

(RoR) local_request? broken on DreamHost?

Posted by: dourlad
Posted on: 2008-06-01 11:56:00

Hi,

I've been getting "undefined method" errors when trying to use the 'local_request?' method in Ruby on Rails applications under the Dream Host environment. This occurs in both production and development mode, and I've tested against the current gems (Rails 2.0.2) and a frozen version of Rails (1.1.6).

This particular method, used to determine whether a request is coming from localhost or elsewhere, is dependent on certain http environment variables (remote ip address, etc.) which perhaps aren't being set as expected in the DH environment? Anyone else seen this?

Thanks,

Charles


Tags: development moderuby on railsenvironment variableslocalhostdreamhostgemsip address