I have a signin lightbox that needs to be shown when user is not logged in. The lightbox is completely implemented in javascript, fancybox and uses rails partials for html.
I can see the cookie is set in chrome when logged in, but document.cookie
seems to return empty. The reason probably has been explained here
How do I achieve this in javascript / erb.