aboutsummaryrefslogtreecommitdiffstats
path: root/actionview
diff options
context:
space:
mode:
authoradamgamble <adamgamble@gmail.com>2017-03-16 12:38:20 -0500
committeradamgamble <adamgamble@gmail.com>2017-03-17 02:04:12 -0500
commit328ae33d78103de242e9d64fa471c64a76aae348 (patch)
treec5f88eeb797cc8bdefe8e436c8d284e303b8e1fa /actionview
parentb9c399de22aa84c94bb6b2edf6f8e88b88ac5f4a (diff)
downloadrails-328ae33d78103de242e9d64fa471c64a76aae348.tar.gz
rails-328ae33d78103de242e9d64fa471c64a76aae348.tar.bz2
rails-328ae33d78103de242e9d64fa471c64a76aae348.zip
Fix typo in actionview error message
Diffstat (limited to 'actionview')
-rw-r--r--actionview/lib/action_view/helpers/url_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionview/lib/action_view/helpers/url_helper.rb b/actionview/lib/action_view/helpers/url_helper.rb
index a306903c60..304db38060 100644
--- a/actionview/lib/action_view/helpers/url_helper.rb
+++ b/actionview/lib/action_view/helpers/url_helper.rb
@@ -622,7 +622,7 @@ module ActionView
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