aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/CHANGELOG
diff options
context:
space:
mode:
authorPratik Naik <pratiknaik@gmail.com>2008-12-25 22:11:06 +0000
committerPratik Naik <pratiknaik@gmail.com>2008-12-25 22:26:03 +0000
commitd67e03871eabb912434dafac3eeb8e6ea7c5585f (patch)
treeac7d7092f56c5e5bfe6c690d44bbf5c91fca8c24 /actionpack/CHANGELOG
parent061952392afd1dae1aa97a816e9a0c79df7c4514 (diff)
downloadrails-d67e03871eabb912434dafac3eeb8e6ea7c5585f.tar.gz
rails-d67e03871eabb912434dafac3eeb8e6ea7c5585f.tar.bz2
rails-d67e03871eabb912434dafac3eeb8e6ea7c5585f.zip
Make ActionController#render(string) work as a shortcut for render :template => string. [#1435]
Examples: # Instead of render(:template => 'controller/action') render('controller/action') Note : Argument must not begin with a '/', but have at least one '/'
Diffstat (limited to 'actionpack/CHANGELOG')
-rw-r--r--actionpack/CHANGELOG7
1 files changed, 4 insertions, 3 deletions
diff --git a/actionpack/CHANGELOG b/actionpack/CHANGELOG
index 5906ab1f16..6badb412f8 100644
--- a/actionpack/CHANGELOG
+++ b/actionpack/CHANGELOG
@@ -1,11 +1,12 @@
*2.3.0 [Edge]*
-* Make ActionController#render(string) work as a shortcut for render :file => string. [#1435] [Pratik Naik] Examples:
+* Make ActionController#render(string) work as a shortcut for render :file/:template => string. [#1435] [Pratik Naik] Examples:
# Instead of render(:file => '/Users/lifo/home.html.erb')
- render('/Users/lifo/home.html.erb')
+ render('/Users/lifo/home.html.erb') # argument must begin with a '/'
- Note : Filename must begin with a forward slash ('/')
+ # Instead of render(:template => 'controller/action')
+ render('controller/action') # argument must not begin with a '/', but contain a '/'
* Add :prompt option to date/time select helpers. #561 [Sam Oliver]