aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/partials.rb
diff options
context:
space:
mode:
authorAkira Matsuda <ronnie@dio.jp>2010-12-25 23:54:34 +0900
committerSantiago Pastorino <santiago@wyeworks.com>2011-02-01 13:01:54 -0200
commit5dd803e9b1149f8e6d7de787e0c833c94f48d5a4 (patch)
tree1704319e94fad632bf807e8ad3c203862b782ee0 /actionpack/lib/action_view/partials.rb
parent6bd9fac1e301d57765073e1f7a17e46972428205 (diff)
downloadrails-5dd803e9b1149f8e6d7de787e0c833c94f48d5a4.tar.gz
rails-5dd803e9b1149f8e6d7de787e0c833c94f48d5a4.tar.bz2
rails-5dd803e9b1149f8e6d7de787e0c833c94f48d5a4.zip
Accept String value for render_partial :as option
[#6222 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
Diffstat (limited to 'actionpack/lib/action_view/partials.rb')
-rw-r--r--actionpack/lib/action_view/partials.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/partials.rb b/actionpack/lib/action_view/partials.rb
index 56c661c00c..c181689e62 100644
--- a/actionpack/lib/action_view/partials.rb
+++ b/actionpack/lib/action_view/partials.rb
@@ -40,7 +40,7 @@ module ActionView
# With the <tt>:as</tt> option we can specify a different name for said local variable. For example, if we
# wanted it to be +agreement+ instead of +contract+ we'd do:
#
- # <%= render :partial => "contract", :as => :agreement %>
+ # <%= render :partial => "contract", :as => 'agreement' %>
#
# The <tt>:object</tt> option can be used to directly specify which object is rendered into the partial;
# useful when the template's object is elsewhere, in a different ivar or in a local variable for instance.