From 60da337a004faabf105639fd1b7f52fae0fc0f39 Mon Sep 17 00:00:00 2001 From: "T.J. Schuck" Date: Fri, 22 Aug 2014 15:19:57 -0400 Subject: Clarify that unknown keys will become HTML attrs Docs for all the other form tag helpers in this file already clarify this. [ci skip] --- actionview/lib/action_view/helpers/form_tag_helper.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'actionview/lib/action_view') diff --git a/actionview/lib/action_view/helpers/form_tag_helper.rb b/actionview/lib/action_view/helpers/form_tag_helper.rb index b18f578183..050c27e239 100644 --- a/actionview/lib/action_view/helpers/form_tag_helper.rb +++ b/actionview/lib/action_view/helpers/form_tag_helper.rb @@ -39,6 +39,7 @@ module ActionView # * :remote - If set to true, will allow the Unobtrusive JavaScript drivers to control the # submit behavior. By default this behavior is an ajax submit. # * :enforce_utf8 - If set to false, a hidden input with name utf8 is not output. + # * Any other key creates standard HTML attributes for the tag. # # ==== Examples # form_tag('/posts') -- cgit v1.2.3 From 0387591c0528307cc664ad75697e683f2a3d9e80 Mon Sep 17 00:00:00 2001 From: "T.J. Schuck" Date: Fri, 22 Aug 2014 15:22:59 -0400 Subject: Remove erroneous form_tag option docs This is true of the first param (url_for_options), not of the second options param which is being documented here. [ci skip] --- actionview/lib/action_view/helpers/form_tag_helper.rb | 1 - 1 file changed, 1 deletion(-) (limited to 'actionview/lib/action_view') diff --git a/actionview/lib/action_view/helpers/form_tag_helper.rb b/actionview/lib/action_view/helpers/form_tag_helper.rb index 050c27e239..7d1cdc5a68 100644 --- a/actionview/lib/action_view/helpers/form_tag_helper.rb +++ b/actionview/lib/action_view/helpers/form_tag_helper.rb @@ -35,7 +35,6 @@ module ActionView # This is helpful when you're fragment-caching the form. Remote forms get the # authenticity token from the meta tag, so embedding is unnecessary unless you # support browsers without JavaScript. - # * A list of parameters to feed to the URL the form will be posted to. # * :remote - If set to true, will allow the Unobtrusive JavaScript drivers to control the # submit behavior. By default this behavior is an ajax submit. # * :enforce_utf8 - If set to false, a hidden input with name utf8 is not output. -- cgit v1.2.3