diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2008-11-19 14:00:16 +0100 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2008-11-19 14:00:16 +0100 |
commit | 130fe74d17404e5c06353526c7b20beb4019cb69 (patch) | |
tree | ad15653d1f1ab20151d4bdc934106e8f857d08f7 /actionpack/CHANGELOG | |
parent | 0c9f677e7861ef2aae36d91811d72794e4709f58 (diff) | |
download | rails-130fe74d17404e5c06353526c7b20beb4019cb69.tar.gz rails-130fe74d17404e5c06353526c7b20beb4019cb69.tar.bz2 rails-130fe74d17404e5c06353526c7b20beb4019cb69.zip |
Changed the default of ActionView#render to assume partials instead of files when not given an options hash [DHH]
Diffstat (limited to 'actionpack/CHANGELOG')
-rw-r--r-- | actionpack/CHANGELOG | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/actionpack/CHANGELOG b/actionpack/CHANGELOG index 4ed39133db..94a02c5325 100644 --- a/actionpack/CHANGELOG +++ b/actionpack/CHANGELOG @@ -1,5 +1,21 @@ *2.3.0/3.0* +* Changed the default of ActionView#render to assume partials instead of files when not given an options hash [DHH]. Examples: + + # Instead of <%= render :partial => "account" %> + <%= render "account" %> + + # Instead of <%= render :partial => "account", :locals => { :account => @buyer } %> + <%= render "account", :account => @buyer %> + + # @account is an Account instance, so it uses the RecordIdentifier to replace + # <%= render :partial => "accounts/account", :locals => { :account => @account } %> + <%= render(@account) %> + + # @posts is an array of Post instances, so it uses the RecordIdentifier to replace + # <%= render :partial => "posts/post", :collection => @posts %> + <%= render(@posts) %> + * Fixed RedCloth and BlueCloth shouldn't preload. Instead just assume that they're available if you want to use textilize and markdown and let autoload require them [DHH] |