I’m trying to store URL’s in my environment variables. So for instance
ENV['SET_COOKIE_URL'] = 'http://domain.com/setcookie'
In my application layout page, I’m trying to do this:
window.top.location = '<%= ENV["SET_COOKIE_URL"] %>';
When I try this, it always returns '' (empty string).
Can you not store and output URL’s in environment variables?
If you just added this environment variable, perhaps re-starting your server would help pickup the environment change. I don’t see any reason why you won’t be able to use that environment variable in your view other than just re-booting your server.