diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2006-09-04 20:01:52 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2006-09-04 20:01:52 +0000 |
commit | df70e28e037952c8dee8e66b3ae683e5976e4f1d (patch) | |
tree | 6e96f8c46c8c42b3f1e3ce952a4d72a3ca93d383 /actionpack/CHANGELOG | |
parent | 939017487d6fb3ad255f98079deadcef1e4054b0 (diff) | |
download | rails-df70e28e037952c8dee8e66b3ae683e5976e4f1d.tar.gz rails-df70e28e037952c8dee8e66b3ae683e5976e4f1d.tar.bz2 rails-df70e28e037952c8dee8e66b3ae683e5976e4f1d.zip |
Added locals hash to partials, which makes for convenient access of some times available/some times not variables (closes #5491) [wbruce@gmail.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4997 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/CHANGELOG')
-rw-r--r-- | actionpack/CHANGELOG | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/actionpack/CHANGELOG b/actionpack/CHANGELOG index be0a4f4ace..c4774df274 100644 --- a/actionpack/CHANGELOG +++ b/actionpack/CHANGELOG @@ -1,5 +1,16 @@ *SVN* +* Added locals hash to partials, which makes for convenient access of some times available/some times not variables #5491 [wbruce@gmail.com]. Example: + + # two different render calls + render :partial => "person", :locals => { :include_overview => true } + render :partial => "person" + + # view + <% if locals[:include_overview] %> + Show overview + <% end %> + * Fixed FormOptionsHelper#select to respect :selected value #5813 * Fixed TextHelper#simple_format to deal with multiple single returns within a single paragraph #5835 [moriq@moriq.com] |