mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Adjust error message for partial names starting with an uppercase letter.
This commit is contained in:
parent
b13849de88
commit
04202a3f8d
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue