Skip to content

Commit

Permalink
Added request as instance method to views, so you can do <%= request.…
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
dhh committed Nov 7, 2005
1 parent bbe9ee1 commit 3c31062
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions actionpack/CHANGELOG
@@ -1,5 +1,7 @@
*SVN* *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] * 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] * Add documentation to assert_tag indicating that it only works with well-formed XHTML #1937, #2570 [Jamis Buck]
Expand Down
2 changes: 1 addition & 1 deletion actionpack/lib/action_view/base.rb
Expand Up @@ -122,7 +122,7 @@ class Base
attr_accessor :base_path, :assigns, :template_extension attr_accessor :base_path, :assigns, :template_extension
attr_accessor :controller 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 '-'. # Specify trim mode for the ERB compiler. Defaults to '-'.
# See ERB documentation for suitable values. # See ERB documentation for suitable values.
Expand Down

0 comments on commit 3c31062

Please sign in to comment.