-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Nov 6, 2005, at 7:19 PM, CSN wrote:> Howdy-
>
> Is it possible to access request.env globally without
> putting assigning it in every action? e.g.
# Ugly, but literally:
class ApplicationController < ActionController::Base
before_filter { $env = request.env }
end
> Or is it possible to access request.env in templates
> already without assigning it? I tried the former and
> it doesn''t work (couldn''t find any docs on the
> latter).
<%= request.env[''foobar''] %>
jeremy
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (Darwin)
iD8DBQFDbuOoAQHALep9HFYRAuNWAJ0bm6e+Un6nkjGhuuU6mTJs84Sa1ACgmU5A
gEr1I8SoRBDsJOZJ2EZug7M=0ztq
-----END PGP SIGNATURE-----