Permalink
Browse files

Merge pull request #6159 from marcandre/fix_bad_partial_error_mess

Adjust error message for partial names starting with an uppercase letter...
  • Loading branch information...
2 parents e2218b7 + 04202a3 commit 06631b8c6e41a61e0b50cf652d27c9144f7c343f @vijaydev vijaydev committed May 4, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/lib/action_view/renderer/partial_renderer.rb
@@ -343,8 +343,8 @@ def setup(context, options, block)
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

0 comments on commit 06631b8

Please sign in to comment.