JetThoughts

Allow multiple access control requests for Rails

December 22nd 2010

If you have problem with sending XHR requests from different domains, you find trouble to get content, because

XMLHttpRequest cannot load http://different.domain.local:3000/visits. Origin http://localhost:3000 is not allowed by Access-Control-Allow-Origin…

Redis Store to store session

September 28th 2010

I use Redis to store session and cache. And When I try cache some session values, I get exception “TypeError (can’t dump TCPSocket)”. I have researched this trouble. It was because session.slice(‘keys’) return not simple Hash instance, but SessionHash. So instance method to_hash fix all troubles…



Powered by Rackspace Cloud Computing