Thursday, January 31, 2008

WebOrb & Rails 2.

To connect WebOrb to Rails 2.x make sure to disable forgery protection in appropriate config/environment/*.rb file:
config.action_controller.allow_forgery_protection = false

Problem with Gem on Windoze

Last night trying to install Rails on Windoze I ran into the dread:
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
getaddrinfo: no address associated with hostname.(SocketError)

This seems to be fairly common, with no solution. It turns out (after hacking remote_fetcher.rb) that HTTP_PROXY was set in the environment (the day job), unset it and everything works fine.

You gotta love a language that comes with sources, programmer heal thyself :-)