From 3c31062c3d5f7092a13029d90c861396b91a1a22 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Mon, 7 Nov 2005 13:51:56 +0000 Subject: Added request as instance method to views, so you can do <%= request.env["HTTP_REFERER"] %>, just like you can already access response, session, and the likes [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2918 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/CHANGELOG | 2 ++ actionpack/lib/action_view/base.rb | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/actionpack/CHANGELOG b/actionpack/CHANGELOG index e28dd6dc91..c3f094b3d0 100644 --- a/actionpack/CHANGELOG +++ b/actionpack/CHANGELOG @@ -1,5 +1,7 @@ *SVN* +* Added request as instance method to views, so you can do <%= request.env["HTTP_REFERER"] %>, just like you can already access response, session, and the likes [DHH] + * Fix conflict with assert_tag and Glue gem #2255 [david.felstead@gmail.com] * Add documentation to assert_tag indicating that it only works with well-formed XHTML #1937, #2570 [Jamis Buck] diff --git a/actionpack/lib/action_view/base.rb b/actionpack/lib/action_view/base.rb index bc49460841..92eef11967 100644 --- a/actionpack/lib/action_view/base.rb +++ b/actionpack/lib/action_view/base.rb @@ -122,7 +122,7 @@ module ActionView #:nodoc: attr_accessor :base_path, :assigns, :template_extension attr_accessor :controller - attr_reader :logger, :params, :response, :session, :headers, :flash + attr_reader :logger, :params, :request, :response, :session, :headers, :flash # Specify trim mode for the ERB compiler. Defaults to '-'. # See ERB documentation for suitable values. -- cgit v1.2.3