aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2006-07-07 22:53:46 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2006-07-07 22:53:46 +0000
commitcf965cda5c755b51292e7c959def80ea54ea41f8 (patch)
tree8f3e0dccb93ff954f0babfce1ccd57c9a7764b41 /actionpack/lib
parent3080b273a86d03a55b7d13c4596166d8f200c7ff (diff)
downloadrails-cf965cda5c755b51292e7c959def80ea54ea41f8.tar.gz
rails-cf965cda5c755b51292e7c959def80ea54ea41f8.tar.bz2
rails-cf965cda5c755b51292e7c959def80ea54ea41f8.zip
Clarify partial filename constraints. Closes #1161.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4581 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib')
-rwxr-xr-xactionpack/lib/action_controller/base.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/base.rb b/actionpack/lib/action_controller/base.rb
index e7fd6d8968..b90cf7f8bf 100755
--- a/actionpack/lib/action_controller/base.rb
+++ b/actionpack/lib/action_controller/base.rb
@@ -549,6 +549,9 @@ module ActionController #:nodoc:
# # each win partial.
# render :partial => "win", :collection => @wins, :spacer_template => "win_divider"
#
+ # Note that the partial filename must also be a valid Ruby variable name,
+ # so e.g. 2005 and register-user are invalid.
+ #
# _Deprecation_ _notice_: This used to have the signatures
# <tt>render_partial(partial_path = default_template_name, object = nil, local_assigns = {})</tt> and
# <tt>render_partial_collection(partial_name, collection, partial_spacer_template = nil, local_assigns = {})</tt>.