aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2012-05-04 11:05:15 -0700
committerVijay Dev <vijaydev.cse@gmail.com>2012-05-04 11:05:15 -0700
commit06631b8c6e41a61e0b50cf652d27c9144f7c343f (patch)
tree1dee5d1ae313ca6c869fd20a58fca894aad684ef
parente2218b7ee5df4580df8d502cbe4ef47b4f1c4a8c (diff)
parent04202a3f8d66c0675eac41fbf63309f4be356e81 (diff)
downloadrails-06631b8c6e41a61e0b50cf652d27c9144f7c343f.tar.gz
rails-06631b8c6e41a61e0b50cf652d27c9144f7c343f.tar.bz2
rails-06631b8c6e41a61e0b50cf652d27c9144f7c343f.zip
Merge pull request #6159 from marcandre/fix_bad_partial_error_mess
Adjust error message for partial names starting with an uppercase letter...
-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