提交 ad37b79e 编写于 作者: R Rafael França 提交者: GitHub

Merge pull request #28450 from adamgamble/bug_fix/fix_typo_in_actionview

Fix typo in actionview error message in to_form_params helper method
......@@ -622,7 +622,7 @@ def method_tag(method)
def to_form_params(attribute, namespace = nil)
attribute = if attribute.respond_to?(:permitted?)
unless attribute.permitted?
raise ArgumentError, "Attempting to generate a buttom from non-sanitized request parameters!" \
raise ArgumentError, "Attempting to generate a button from non-sanitized request parameters!" \
" Whitelist and sanitize passed parameters to be secure."
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册