aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorMarc-Andre Lafortune <github@marc-andre.ca>2012-05-04 13:48:02 -0400
committerMarc-Andre Lafortune <github@marc-andre.ca>2012-05-04 13:48:02 -0400
commit04202a3f8d66c0675eac41fbf63309f4be356e81 (patch)
tree66c0d2dbfc4e0642754e579f7a8950124b18bc27 /actionpack
parentb13849de88cb330aaedee0881862ea55bfa33c85 (diff)
downloadrails-04202a3f8d66c0675eac41fbf63309f4be356e81.tar.gz
rails-04202a3f8d66c0675eac41fbf63309f4be356e81.tar.bz2
rails-04202a3f8d66c0675eac41fbf63309f4be356e81.zip
Adjust error message for partial names starting with an uppercase letter.
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_view/renderer/partial_renderer.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_view/renderer/partial_renderer.rb b/actionpack/lib/action_view/renderer/partial_renderer.rb
index c5d5540510..87609fd5ff 100644
--- a/actionpack/lib/action_view/renderer/partial_renderer.rb
+++ b/actionpack/lib/action_view/renderer/partial_renderer.rb
@@ -343,8 +343,8 @@ module ActionView
if String === partial && @variable.to_s !~ /^[a-z_][a-zA-Z_0-9]*$/
raise ArgumentError.new("The partial name (#{partial}) is not a valid Ruby identifier; " +
- "make sure your partial name starts with a letter or underscore, " +
- "and is followed by any combinations of letters, numbers, or underscores.")
+ "make sure your partial name starts with a lowercase letter or underscore, " +
+ "and is followed by any combination of letters, numbers and underscores.")
end
self