For the life of me I can't figure out where the HTTP variables are stores in the RoR framework. Does anyone know? I am looking more specificaly for HTTP_REFERER but I would also like to know in general about the rest.
Thanks
For the life of me I can't figure out where the HTTP variables are stores in the RoR framework. Does anyone know? I am looking more specificaly for HTTP_REFERER but I would also like to know in general about the rest.
Thanks
The referrer is in: request.env[‘HTTP_REFERER’]
To explore the rest, try putting
<%= request.inspect %>
in one of your views and look through the output.
James.
ah yes request... I totally forgot about that sexy object :-). Thanks